mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-07 04:40:05 +08:00

* Cleanup bundled runtime entry point * Fix JS representation of Screen struct * Expose IsFocused method in Window interface * Update JS window API * Fix cleanup of WML listeners * Bundle runtime as ES module * Update runtime dependencies * Update runtime types and events * Update bundled runtime * Update changelog --------- Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
23 lines
545 B
JavaScript
23 lines
545 B
JavaScript
/*
|
|
_ __ _ __
|
|
| | / /___ _(_) /____
|
|
| | /| / / __ `/ / / ___/
|
|
| |/ |/ / /_/ / / (__ )
|
|
|__/|__/\__,_/_/_/____/
|
|
The electron alternative for Go
|
|
(c) Lea Anthony 2019-present
|
|
*/
|
|
|
|
import * as Runtime from "../@wailsio/runtime/src";
|
|
|
|
// NOTE: the following methods MUST be imported explicitly because of how esbuild injection works
|
|
import {Enable as EnableWML} from "../@wailsio/runtime/src/wml";
|
|
import {debugLog} from "../@wailsio/runtime/src/utils";
|
|
|
|
window.wails = Runtime;
|
|
EnableWML();
|
|
|
|
if (DEBUG) {
|
|
debugLog("Wails Runtime Loaded")
|
|
}
|