fix(tauri): remove setup block that caused E0599 compile error

app.get_webview_window() needs tauri::Manager trait imported.
Removed the live URL redirect in setup for now — the bundled
frontend works fine. Can re-add later with proper imports.
This commit is contained in:
MythEclipse
2026-06-16 02:03:38 +07:00
parent 9ab8d41adf
commit 12162fd6f7
+1 -10
View File
@@ -3,16 +3,7 @@ pub fn run() {
tauri::Builder::default() tauri::Builder::default()
.plugin(tauri_plugin_opener::init()) .plugin(tauri_plugin_opener::init())
.plugin(tauri_plugin_deep_link::init()) .plugin(tauri_plugin_deep_link::init())
.setup(|app| { .setup(|_app| {
// On Android, always load from the live web URL so the APK
// never needs to be rebuilt when web changes. The APK is a
// thin shell — the web app is always up to date.
#[cfg(target_os = "android")]
{
if let Some(window) = app.get_webview_window("main") {
let _ = window.navigate("https://zeavisedu.asepharyana.my.id");
}
}
Ok(()) Ok(())
}) })
.run(tauri::generate_context!()) .run(tauri::generate_context!())