Skip to content

Commit

Permalink
Fixes #314
Browse files Browse the repository at this point in the history
  • Loading branch information
CodexAdrian committed Jul 21, 2023
1 parent d120c12 commit a99418c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions theseus_gui/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import mixpanel from 'mixpanel-browser'
import { saveWindowState, StateFlags } from 'tauri-plugin-window-state-api'
import OnboardingModal from '@/components/OnboardingModal.vue'
import { getVersion } from '@tauri-apps/api/app'
import { window } from '@tauri-apps/api'
import { window as TauriWindow } from '@tauri-apps/api'
import { TauriEvent } from '@tauri-apps/api/event'
import { await_sync, check_safe_loading_bars_complete } from './helpers/state'
import { confirm } from '@tauri-apps/api/dialog'
Expand Down Expand Up @@ -93,10 +93,10 @@ const handleClose = async () => {
}
}
await await_sync()
window.getCurrent().close()
await TauriWindow.getCurrent().close()
}
window.getCurrent().listen(TauriEvent.WINDOW_CLOSE_REQUESTED, async () => {
TauriWindow.getCurrent().listen(TauriEvent.WINDOW_CLOSE_REQUESTED, async () => {
await handleClose()
})
Expand Down Expand Up @@ -136,8 +136,8 @@ document.querySelector('body').addEventListener('click', function (e) {
path: target.href,
},
})
e.preventDefault()
}
e.preventDefault()
break
}
target = target.parentElement
Expand Down

0 comments on commit a99418c

Please sign in to comment.