mirror of
https://github.com/taigrr/wails.git
synced 2026-04-02 05:08:54 -07:00
Merge pull request #9 from wailsapp/Port-Build
mute logging of injected scripts
This commit is contained in:
@@ -41,11 +41,9 @@
|
|||||||
|
|
||||||
// -------------- JS ----------------
|
// -------------- JS ----------------
|
||||||
function addScript(js, callbackID) {
|
function addScript(js, callbackID) {
|
||||||
console.log("Adding script: " + js)
|
|
||||||
var script = document.createElement("script");
|
var script = document.createElement("script");
|
||||||
script.text = js;
|
script.text = js;
|
||||||
document.body.appendChild(script);
|
document.body.appendChild(script);
|
||||||
console.log("Calling back with:" + callbackID);
|
|
||||||
window.wails.events.emit(callbackID);
|
window.wails.events.emit(callbackID);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user