mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-10 10:11:46 +00:00
Bump electron to v10 (+ remove devtron, bump spectron)
This commit is contained in:
1
index.js
1
index.js
@ -55,6 +55,7 @@ function createMainWindow() {
|
||||
nodeIntegration: isTesting(), // Only necessary when testing with Spectron
|
||||
preload: path.join(__dirname, "preload.js"),
|
||||
nativeWindowOpen: true, // window.open return Window object(like in regular browsers), not BrowserWindowProxy
|
||||
enableRemoteModule: true,
|
||||
affinity: "main-window", // main window, and addition windows should work in one process
|
||||
},
|
||||
frame: !is.macOS(),
|
||||
|
||||
@ -56,15 +56,14 @@
|
||||
"node-fetch": "^2.6.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"devtron": "^1.4.0",
|
||||
"electron": "^8.2.4",
|
||||
"electron": "^10.1.3",
|
||||
"electron-builder": "^22.8.1",
|
||||
"electron-devtools-installer": "^3.1.1",
|
||||
"electron-icon-maker": "0.0.5",
|
||||
"get-port": "^5.1.1",
|
||||
"jest": "^26.4.2",
|
||||
"rimraf": "^3.0.2",
|
||||
"spectron": "^10.0.1",
|
||||
"spectron": "^12.0.0",
|
||||
"xo": "^0.33.1"
|
||||
},
|
||||
"xo": {
|
||||
|
||||
@ -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"));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user