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' }
})
/**