Complete upgrade to electron14 and apply migrations

-- remove path-browserify
This commit is contained in:
Djones4822
2023-02-16 19:34:01 -05:00
parent 571dd7bdba
commit 2504e64b8f
5 changed files with 7 additions and 19 deletions

View File

@@ -4,7 +4,7 @@ import * as windowStateKeeper from 'electron-window-state'
import * as path from 'path'
import * as url from 'url'
require('electron-unhandled')({ showDialog: true })
require('@electron/remote/main').initialize()
// IPC Handlers
import { getIPCInvokeHandlers, getIPCEmitHandlers, IPCEmitEvents } from './shared/IPCHandler'
@@ -14,7 +14,10 @@ import { dataPath } from './shared/Paths'
export let mainWindow: BrowserWindow
const args = process.argv.slice(1)
const isDevBuild = args.some(val => val == '--dev')
const remote = require('@electron/remote/main')
remote.initialize()
restrictToSingleInstance()
handleOSXWindowClosed()
app.on('ready', () => {
@@ -97,7 +100,7 @@ function createBridgeWindow() {
})
// enable the remote webcontents
require("@electron/remote/main").enable(mainWindow.webContents)
remote.enable(mainWindow.webContents)
}
/**