Skip to content

Commit 5b93b3a

Browse files
committed
Update script type when reapplying script element
1 parent f452d2e commit 5b93b3a

File tree

1 file changed

+1
-1
lines changed
  • templates/default/fulldoc/html/js

1 file changed

+1
-1
lines changed

templates/default/fulldoc/html/js/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ window.addEventListener(
373373
(script.type.includes("text/javascript") && !script.src)
374374
) {
375375
const newScript = document.createElement("script");
376-
newScript.type = script.type;
376+
newScript.type = "text/javascript";
377377
newScript.textContent = script.textContent;
378378
document.head.appendChild(newScript);
379379
}

0 commit comments

Comments
 (0)