1
0
mirror of https://github.com/kremalicious/blowfish.git synced 2024-11-22 09:47:00 +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, nodeIntegration: true,
preload: path.join(__dirname, 'preload.js'), preload: path.join(__dirname, 'preload.js'),
scrollBounce: true, scrollBounce: true,
enableBlinkFeatures: 'OverlayScrollbars' enableBlinkFeatures: 'OverlayScrollbars',
enableRemoteModule: true
} }
}) })

View File

@ -1,11 +1,11 @@
const { webFrame, ipcRenderer } = require('electron') const { webFrame, ipcRenderer } = require('electron')
const Store = require('electron-store') const Store = require('electron-store')
const store = new Store()
// Since we disabled nodeIntegration we can reintroduce // Since we disabled nodeIntegration we can reintroduce
// needed node functionality here // needed node functionality here
process.once('loaded', () => { process.once('loaded', () => {
const store = new Store()
global.ipcRenderer = ipcRenderer global.ipcRenderer = ipcRenderer
global.webFrame = webFrame global.webFrame = webFrame
global.store = store global.store = store