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