mirror of
https://github.com/taigrr/wails.git
synced 2026-04-02 05:08:54 -07:00
Set script type for injections
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -111,6 +111,7 @@ function startBridge() {
|
||||
// Removes it if second parameter is true.
|
||||
function addScript(script, remove) {
|
||||
var s = document.createElement("script");
|
||||
s.setAttribute('type', 'text/javascript');
|
||||
s.textContent = script;
|
||||
document.head.appendChild(s);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user