Skip to content

Commit d441c0b

Browse files
committed
Set crossorigin attribute to empty string.
1 parent 3210563 commit d441c0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/build/scripts/cross-origin-css.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function convertImageToDataURI(img) {
1515

1616
document.addEventListener('DOMContentLoaded', function () {
1717
var img = new Image();
18-
img.setAttribute('crossorigin');
18+
img.setAttribute('crossorigin', '');
1919

2020
var background = document.querySelector('.demo-css--cross-origin');
2121
var dataSrc = background.getAttribute('data-src');

0 commit comments

Comments
 (0)