|
|
@ -58,7 +58,7 @@ |
|
|
|
error = "Closing due to " + (result.error || "an error"); |
|
|
|
error = "Closing due to " + (result.error || "an error"); |
|
|
|
} |
|
|
|
} |
|
|
|
let window_api = await import("@tauri-apps/plugin-window"); |
|
|
|
let window_api = await import("@tauri-apps/plugin-window"); |
|
|
|
let main = window_api.Window.getByLabel("main"); |
|
|
|
let main = window_api.WebviewWindow.getByLabel("main"); |
|
|
|
if (main) { |
|
|
|
if (main) { |
|
|
|
await main.emit("error", result); |
|
|
|
await main.emit("error", result); |
|
|
|
} else { |
|
|
|
} else { |
|
|
@ -79,7 +79,7 @@ |
|
|
|
// @ts-ignore |
|
|
|
// @ts-ignore |
|
|
|
if (window.__TAURI__) { |
|
|
|
if (window.__TAURI__) { |
|
|
|
let window_api = await import("@tauri-apps/plugin-window"); |
|
|
|
let window_api = await import("@tauri-apps/plugin-window"); |
|
|
|
let main = window_api.Window.getByLabel("main"); |
|
|
|
let main = window_api.WebviewWindow.getByLabel("main"); |
|
|
|
if (main) { |
|
|
|
if (main) { |
|
|
|
await main.emit("accepted", result); |
|
|
|
await main.emit("accepted", result); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|