Merge branch 'v2-alpha' into 796-support-browseropenurl

This commit is contained in:
Lea Anthony
2021-09-13 20:21:59 +10:00
committed by GitHub
10 changed files with 38 additions and 36 deletions

View File

@@ -14,9 +14,15 @@ import * as Events from './events';
import * as Window from './window';
import * as Browser from './browser';
export function Quit() {
window.runtime.Quit();
}
export default {
...Log,
...Events,
...Window,
...Browser
...Browser,
Quit
};

View File

@@ -71,11 +71,11 @@ interface runtime {
WindowUnminimise(): void
WindowSetRGBA(rgba: RGBA): void;
WindowClose(): void
WindowSetRGBA(rgba: RGBA): void
BrowserOpenURL(): void
Quit(): void
}
declare global {

View File

@@ -185,12 +185,3 @@ export function WindowUnminimise() {
export function WindowSetRGBA(RGBA) {
window.runtime.WindowSetRGBA(RGBA);
}
/**
* Close the Window
*
* @export
*/
export function WindowClose() {
window.runtime.WindowClose();
}