Skip to content

Commit 4807174

Browse files
committed
Merge branch 'integrity' into htmlimports
2 parents 3804de9 + e1bd969 commit 4807174

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

demo/bootstrap.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@ else {
1717
let script = top.document.querySelector('script');
1818
let src = script.src;
1919
if (!src) {
20-
let attr = Array.prototype.filter.call(script.attributes, (a) => a.name.endsWith(':href'))[0];
21-
if (attr) {
22-
src = attr.value;
23-
}
20+
location = 'about:blank'; // top SVG is not supported
2421
}
2522
noHookAuthorization = new URL(src, baseURI).searchParams.get('no-hook-authorization');
2623
break;

0 commit comments

Comments
 (0)