main: remove @electron/remote package
This commit is contained in:
1 parent
8057a3521a
commit
c38d6153fe
3 files changed
+170
-69
No files matched your search
Generated
+170
-65
File diff suppressed because it is too large.
Load diff
@@ -36,7 +36,6 @@
|
||||
"node": ">=16.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@electron/remote": "^2.0.9",
|
||||
"pinia": "^2.0.29",
|
||||
"vue": "^3.2.45",
|
||||
"vue-i18n": "^9.2.2",
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { app, BrowserWindow, RenderProcessGoneDetails } from 'electron'
|
||||
import Constants from './utils/Constants'
|
||||
import * as electronRemote from '@electron/remote/main'
|
||||
import IPCs from './IPCs'
|
||||
|
||||
const exitApp = (mainWindow: BrowserWindow): void => {
|
||||
@@ -39,8 +38,6 @@ export const createMainWindow = async (mainWindow: BrowserWindow): Promise<Brows
|
||||
mainWindow.show()
|
||||
mainWindow.focus()
|
||||
mainWindow.setAlwaysOnTop(false)
|
||||
|
||||
electronRemote.initialize()
|
||||
})
|
||||
|
||||
if (Constants.IS_DEV_ENV) {
|
||||
|
||||
Reference in new issue
Block a user