revert to previous version of tauri for ngaccount

Niko PLP 1 year ago
parent d646a75b22
commit 352128ed0d
  1. 2
      ngaccount/src/main.rs
  2. 4
      ngaccount/web/src/routes/Create.svelte

@ -265,7 +265,7 @@ async fn main() -> anyhow::Result<()> {
let static_files = warp::get()
.and(warp_embed::embed(&Static))
.with(warp::reply::with::headers(headers))
//.with(warp::reply::with::headers(headers))
.boxed();
let mut cors = warp::cors()

@ -58,7 +58,7 @@
error = "Closing due to " + (result.error || "an error");
}
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) {
await main.emit("error", result);
} else {
@ -79,7 +79,7 @@
// @ts-ignore
if (window.__TAURI__) {
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) {
await main.emit("accepted", result);
} else {

Loading…
Cancel
Save