export Window

pull/426/head
Lucas Nogueira 2 years ago
parent c9be18d8d6
commit 6b673ab249
No known key found for this signature in database
GPG Key ID: FFEA6C72E73482F1

@ -7,6 +7,7 @@
PhysicalPosition, PhysicalPosition,
Effect, Effect,
EffectState, EffectState,
Window
} from "@tauri-apps/plugin-window"; } from "@tauri-apps/plugin-window";
import { open as openDialog } from "@tauri-apps/plugin-dialog"; import { open as openDialog } from "@tauri-apps/plugin-dialog";
import { open } from "@tauri-apps/plugin-shell"; import { open } from "@tauri-apps/plugin-shell";
@ -147,7 +148,7 @@
function createWindow() { function createWindow() {
if (!newWindowLabel) return; if (!newWindowLabel) return;
const webview = new WebviewWindow(newWindowLabel); const webview = new Window(newWindowLabel);
windowMap[newWindowLabel] = webview; windowMap[newWindowLabel] = webview;
webview.once("tauri://error", function () { webview.once("tauri://error", function () {
onMessage("Error creating new webview"); onMessage("Error creating new webview");

@ -2320,6 +2320,7 @@ async function availableMonitors(): Promise<Monitor[]> {
} }
export { export {
Window,
CloseRequestedEvent, CloseRequestedEvent,
getCurrent, getCurrent,
getAll, getAll,

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save