fix: check __TAURI_INTERNALS__ for Tauri availability
This commit is contained in:
@@ -166,7 +166,8 @@ const skippedPeople = computed(() => {
|
|||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
// Wait for Tauri to be ready
|
// Wait for Tauri to be ready
|
||||||
if (!(window as any).__TAURI__) {
|
const tauri = (window as any).__TAURI_INTERNALS__ || (window as any).__TAURI__
|
||||||
|
if (!tauri) {
|
||||||
console.error('Tauri not available - must run inside Tauri webview')
|
console.error('Tauri not available - must run inside Tauri webview')
|
||||||
loading.value = false
|
loading.value = false
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user