chore: upgrade electron

This commit is contained in:
Aman Harwara
2023-02-02 00:11:38 +05:30
parent 039f04c10f
commit 6829c15159
37 changed files with 110 additions and 173 deletions

View File

@@ -121,11 +121,11 @@ export async function createWindowState({
window.webContents.session.setSpellCheckerDictionaryDownloadURL('https://dictionaries.standardnotes.org/9.4.4/')
/** handle link clicks */
window.webContents.on('new-window', (event, url) => {
window.webContents.setWindowOpenHandler(({ url }) => {
if (shouldOpenUrl(url)) {
void shell.openExternal(url)
}
event.preventDefault()
return { action: 'deny' }
})
/**

View File

@@ -34,14 +34,14 @@
"hoistingLimits": "workspaces"
},
"dependencies": {
"@electron/remote": "^2.0.8",
"@electron/remote": "^2.0.9",
"@standardnotes/electron-clear-data": "1.1.1",
"@standardnotes/web": "workspace:*",
"axios": "^1.1.3",
"compare-versions": "^5.0.1",
"decrypt": "github:standardnotes/decrypt#master",
"dotenv": "^16.0.3",
"electron": "21.2.3",
"electron": "22.1.0",
"electron-log": "^4.4.8",
"electron-updater": "^5.3.0",
"fs-extra": "^10.1.0",