5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-05 23:43:16 +08:00
wails/v3/internal/runtime/desktop/browser.js
Lea Anthony 4c75b288bb
Add BrowserOpenURL and BrowserOpenFile to App.
Better WML assets for demo
Fix dialog responses.
Add `wml-openurl`
Rename: data-wml -> wml
Fix Alpha Feedback URL
2023-10-11 20:23:59 +11:00

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