1
0
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:
Matthias Kretschmann 2020-09-09 00:21:19 +02:00
parent 9e733f1e25
commit af1e7a500f
Signed by: m
GPG Key ID: 606EEEF3C479A91F
2 changed files with 4 additions and 3 deletions

View File

@ -40,7 +40,8 @@ const createWindow = async () => {
nodeIntegration: true,
preload: path.join(__dirname, 'preload.js'),
scrollBounce: true,
enableBlinkFeatures: 'OverlayScrollbars'
enableBlinkFeatures: 'OverlayScrollbars',
enableRemoteModule: true
}
})

View File

@ -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