Added: plugin reload state in localstorage

This commit is contained in:
PiEgg
2018-12-17 23:56:11 +08:00
parent cdf7e14548
commit 72f2669cce
3 changed files with 39 additions and 4 deletions

View File

@@ -512,6 +512,8 @@ if (process.env.XDG_CURRENT_DESKTOP && process.env.XDG_CURRENT_DESKTOP.includes(
app.on('ready', () => {
createWindow()
createSettingWindow()
// reset localstorage state
settingWindow.webContents.executeJavaScript(`localStorage.setItem('plugins', '')`)
if (process.platform === 'darwin' || process.platform === 'win32') {
createTray()
}