mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-05 23:43:16 +08:00

Better WML assets for demo Fix dialog responses. Add `wml-openurl` Rename: data-wml -> wml Fix Alpha Feedback URL
26 lines
517 B
JavaScript
26 lines
517 B
JavaScript
/*
|
|
_ __ _ __
|
|
| | / /___ _(_) /____
|
|
| | /| / / __ `/ / / ___/
|
|
| |/ |/ / /_/ / / (__ )
|
|
|__/|__/\__,_/_/_/____/
|
|
The electron alternative for Go
|
|
(c) Lea Anthony 2019-present
|
|
*/
|
|
|
|
/* jshint esversion: 9 */
|
|
|
|
import {newRuntimeCallerWithID, objectNames} from "./runtime";
|
|
|
|
let call = newRuntimeCallerWithID(objectNames.Browser);
|
|
|
|
let BrowserOpenURL = 0;
|
|
|
|
/**
|
|
* Open a browser window to the given URL
|
|
* @param {string} url - The URL to open
|
|
*/
|
|
export function OpenURL(url) {
|
|
void call(BrowserOpenURL, {url});
|
|
}
|