We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3804de9 + e1bd969 commit 4807174Copy full SHA for 4807174
demo/bootstrap.js
@@ -17,10 +17,7 @@ else {
17
let script = top.document.querySelector('script');
18
let src = script.src;
19
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
- }
+ location = 'about:blank'; // top SVG is not supported
24
}
25
noHookAuthorization = new URL(src, baseURI).searchParams.get('no-hook-authorization');
26
break;
0 commit comments