mirror of
https://github.com/kremalicious/blowfish.git
synced 2024-11-22 01:36:58 +01:00
fix electron-store
This commit is contained in:
parent
9e733f1e25
commit
af1e7a500f
@ -40,7 +40,8 @@ const createWindow = async () => {
|
||||
nodeIntegration: true,
|
||||
preload: path.join(__dirname, 'preload.js'),
|
||||
scrollBounce: true,
|
||||
enableBlinkFeatures: 'OverlayScrollbars'
|
||||
enableBlinkFeatures: 'OverlayScrollbars',
|
||||
enableRemoteModule: true
|
||||
}
|
||||
})
|
||||
|
||||
|
@ -1,11 +1,11 @@
|
||||
const { webFrame, ipcRenderer } = require('electron')
|
||||
const Store = require('electron-store')
|
||||
|
||||
const store = new Store()
|
||||
|
||||
// Since we disabled nodeIntegration we can reintroduce
|
||||
// needed node functionality here
|
||||
process.once('loaded', () => {
|
||||
const store = new Store()
|
||||
|
||||
global.ipcRenderer = ipcRenderer
|
||||
global.webFrame = webFrame
|
||||
global.store = store
|
||||
|
Loading…
Reference in New Issue
Block a user