Always use transpiled variant for web

This commit is contained in:
tobspr 2022-06-16 10:20:04 +02:00
parent dd0508e777
commit 6abe731b32
1 changed files with 9 additions and 4 deletions

View File

@ -108,8 +108,13 @@
callbackDone = true; callbackDone = true;
}; };
var scriptEs6 = makeJsTag(bundleSrc, bundleIntegrity); // var scriptEs6 = makeJsTag(bundleSrc, bundleIntegrity);
scriptEs6.addEventListener("error", loadFallbackJs); // scriptEs6.addEventListener("error", loadFallbackJs);
scriptEs6.addEventListener("load", onJsLoaded); // scriptEs6.addEventListener("load", onJsLoaded);
document.head.appendChild(scriptEs6); // document.head.appendChild(scriptEs6);
var scriptTransp = makeJsTag(bundleSrcTranspiled, bundleIntegrityTranspiled);
scriptTransp.addEventListener("error", scriptFail);
scriptTransp.addEventListener("load", onJsLoaded);
document.head.appendChild(scriptTransp);
})(); })();