5
0
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:
Lea Anthony 2019-04-23 08:46:11 +10:00
parent 0373bea4e5
commit 2e61a3c309
No known key found for this signature in database
GPG Key ID: 33DAF7BB90A58405
2 changed files with 24 additions and 23 deletions

File diff suppressed because one or more lines are too long

View File

@ -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);