21 lines
498 B
JavaScript
21 lines
498 B
JavaScript
/*
|
|
_ __ _ __
|
|
| | / /___ _(_) /____
|
|
| | /| / / __ `/ / / ___/
|
|
| |/ |/ / /_/ / / (__ )
|
|
|__/|__/\__,_/_/_/____/
|
|
The electron alternative for Go
|
|
(c) Lea Anthony 2019-present
|
|
*/
|
|
import { newRuntimeCaller, objectNames } from "./runtime.js";
|
|
const call = newRuntimeCaller(objectNames.Browser);
|
|
const BrowserOpenURL = 0;
|
|
/**
|
|
* Open a browser window to the given URL.
|
|
*
|
|
* @param url - The URL to open
|
|
*/
|
|
export function OpenURL(url) {
|
|
return call(BrowserOpenURL, { url: url.toString() });
|
|
}
|