mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-03 02:31:58 +08:00
Set script type for injections
This commit is contained in:
parent
0373bea4e5
commit
2e61a3c309
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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user