mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-03 14:42:03 +08:00
parent
163c0d9e67
commit
87df51feeb
File diff suppressed because one or more lines are too long
@ -1,9 +1,9 @@
|
|||||||
/*
|
/*
|
||||||
_ __ _ __
|
_ __ _ __
|
||||||
| | / /___ _(_) /____
|
| | / /___ _(_) /____
|
||||||
| | /| / / __ `/ / / ___/
|
| | /| / / __ `/ / / ___/
|
||||||
| |/ |/ / /_/ / / (__ )
|
| |/ |/ / /_/ / / (__ )
|
||||||
|__/|__/\__,_/_/_/____/
|
|__/|__/\__,_/_/_/____/
|
||||||
The lightweight framework for web-like apps
|
The lightweight framework for web-like apps
|
||||||
(c) Lea Anthony 2019-present
|
(c) Lea Anthony 2019-present
|
||||||
*/
|
*/
|
||||||
@ -21,6 +21,14 @@ import * as Store from './store';
|
|||||||
window.wails = window.wails || {};
|
window.wails = window.wails || {};
|
||||||
window.backend = {};
|
window.backend = {};
|
||||||
|
|
||||||
|
// On webkit2gtk >= 2.32, the external object is not passed
|
||||||
|
// to the window context,
|
||||||
|
window.external = window.external || {
|
||||||
|
invoke: function(x) {
|
||||||
|
window.webkit.messageHandlers.external.postMessage(x);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
// Setup internal calls
|
// Setup internal calls
|
||||||
var internal = {
|
var internal = {
|
||||||
NewBinding,
|
NewBinding,
|
||||||
@ -61,7 +69,7 @@ window.onerror = function (msg, url, lineNo, columnNo, error) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Use firebug?
|
// Use firebug?
|
||||||
if( window.usefirebug ) {
|
if( window.usefirebug ) {
|
||||||
InjectFirebug();
|
InjectFirebug();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -71,4 +79,4 @@ Emit('wails:loaded');
|
|||||||
// Nothing to init in production
|
// Nothing to init in production
|
||||||
export function Init(callback) {
|
export function Init(callback) {
|
||||||
callback();
|
callback();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user