add module loading
This commit is contained in:
parent
0365fcb24d
commit
1141272165
1
front/dist/iframe.html
vendored
1
front/dist/iframe.html
vendored
@ -10,6 +10,7 @@
|
|||||||
const urlParams = new URLSearchParams(window.location.search);
|
const urlParams = new URLSearchParams(window.location.search);
|
||||||
const scriptUrl = urlParams.get('script');
|
const scriptUrl = urlParams.get('script');
|
||||||
const script = document.createElement('script');
|
const script = document.createElement('script');
|
||||||
|
script.type = "module";
|
||||||
script.src = scriptUrl;
|
script.src = scriptUrl;
|
||||||
document.head.append(script);
|
document.head.append(script);
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user