add module loading

This commit is contained in:
_Bastler 2021-08-13 10:00:34 +02:00
parent 0365fcb24d
commit 1141272165

View File

@ -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>