Bump electron to v10 (+ remove devtron, bump spectron)

This commit is contained in:
TC
2020-10-04 17:39:18 +02:00
parent 97dce5ad41
commit 5f0dcbb3fc
4 changed files with 559 additions and 658 deletions

View File

@ -1,6 +1,6 @@
const path = require("path");
const { getCurrentWindow } = require("electron").remote;
const { remote } = require("electron");
const { getEnabledPlugins, store } = require("./store");
const { fileExists } = require("./plugins/utils");
@ -28,5 +28,5 @@ document.addEventListener("DOMContentLoaded", () => {
// Add action for reloading
global.reload = () =>
getCurrentWindow().webContents.loadURL(store.get("url"));
remote.getCurrentWindow().webContents.loadURL(store.get("url"));
});