Skip to content

Commit efb7edb

Browse files
committed
fix: Change loader to use getAttribute instead of dataset
1 parent c92dd92 commit efb7edb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/browser/src/loader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
for (var i = 0; i < document.scripts.length; i++) {
1818
if (document.scripts[i].src.indexOf(_publicKey) > -1) {
19-
lazy = !(document.scripts[i].dataset.lazy === 'no');
19+
lazy = !(document.scripts[i].getAttribute('data-lazy') === 'no');
2020
break;
2121
}
2222
}

0 commit comments

Comments
 (0)