Fix deeplinks on windows

pull/395/head
Michael Truell 2023-03-30 01:32:24 -07:00
parent 3d1d47cd94
commit fbc5cc45fb
1 changed files with 1 additions and 4 deletions

View File

@ -40,8 +40,6 @@ import todesktop from '@todesktop/runtime'
todesktop.init()
const store = new Store()
store.clear()
let main_window: Electron.BrowserWindow
if (process.defaultApp) {
@ -65,8 +63,7 @@ if (!gotTheLock) {
if (main_window.isMinimized()) main_window.restore()
main_window.focus()
}
console.log('second instance')
const url = commandLine.pop()?.slice(0, -1)
const url = commandLine.pop()
// dialog.showErrorBox('Welcome Back (in app already)', `You arrived from: ${url}`)
if (url) {
setupTokens(url)