5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-07 04:40:05 +08:00
wails/v3/internal/runtime/desktop/compiled/main.js
Fabio Massaioli 2b9891da2c
[v3] Update and fix runtime JS API (#3295)
* 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>
2024-03-20 20:30:14 +11:00

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")
}