Skip to content

Commit 4cc9339

Browse files
remove 'text/javascript' from scriptElements (#29386)
1 parent 69e040e commit 4cc9339

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/Components/Web.JS/src/Platform/Mono/MonoPlatform.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,6 @@ function addGlobalModuleScriptTagsToDocument(callback: () => void) {
205205
// The callback is put in the global scope so that it can be run after the script is loaded.
206206
// onload cannot be used in this case for non-file scripts.
207207
window['__wasmmodulecallback__'] = callback;
208-
scriptElem.type = 'text/javascript';
209208
scriptElem.text = 'var Module; window.__wasmmodulecallback__(); delete window.__wasmmodulecallback__;';
210209

211210
document.body.appendChild(scriptElem);

0 commit comments

Comments
 (0)