mirror of https://github.com/getcursor/cursor
Fix deeplinks on windows
parent
3d1d47cd94
commit
fbc5cc45fb
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue