From 4b252a1d5d40bc0fae248879dc144ccdb1c7733e Mon Sep 17 00:00:00 2001 From: MythEclipse Date: Tue, 16 Jun 2026 04:01:38 +0700 Subject: [PATCH] fix(tauri): enable withGlobalTauri so Tauri APIs work on live web Without this, the redirect page loads zeavisedu.asepharyana.my.id but __TAURI_INTERNALS__ is not injected, so isTauri() returns false, handleGoogleLogin uses window.location.href (WebView navigation), and Google blocks embedded WebView since 2016. With withGlobalTauri=true, the live web page detects Tauri, uses tauri- plugin-opener to open system browser, and Google OAuth works. Co-Authored-By: Claude --- apps/tauri/tauri.conf.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/tauri/tauri.conf.json b/apps/tauri/tauri.conf.json index d12675c..78ccaeb 100644 --- a/apps/tauri/tauri.conf.json +++ b/apps/tauri/tauri.conf.json @@ -10,7 +10,7 @@ "beforeDevCommand": "echo 'Dev mode - connect to localhost:5173'" }, "app": { - "withGlobalTauri": false, + "withGlobalTauri": true, "windows": [ { "title": "ZeaVis Edu",