Merge pull request #1472 from thecodingmachine/type_module
Switching API to use type="module" scripts
This commit is contained in:
commit
d68da0754e
1
front/dist/iframe.html
vendored
1
front/dist/iframe.html
vendored
@ -11,6 +11,7 @@
|
||||
const scriptUrl = urlParams.get('script');
|
||||
const script = document.createElement('script');
|
||||
script.src = scriptUrl;
|
||||
script.type = "module";
|
||||
document.head.append(script);
|
||||
</script>
|
||||
</head>
|
||||
|
@ -311,7 +311,7 @@ class IframeListener {
|
||||
"//" +
|
||||
window.location.host +
|
||||
'/iframe_api.js" ></script>\n' +
|
||||
'<script src="' +
|
||||
'<script type="module" src="' +
|
||||
scriptUrl +
|
||||
'" ></script>\n' +
|
||||
"<title></title>\n" +
|
||||
|
Loading…
Reference in New Issue
Block a user