mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 10:31:47 +00:00
Merge pull request #890 from th-ch/load-plugins-on-window-creation
Load plugins as soon as the window is created
This commit is contained in:
2
index.js
2
index.js
@ -152,6 +152,7 @@ function createMainWindow() {
|
|||||||
: "default",
|
: "default",
|
||||||
autoHideMenuBar: config.get("options.hideMenu"),
|
autoHideMenuBar: config.get("options.hideMenu"),
|
||||||
});
|
});
|
||||||
|
loadPlugins(win);
|
||||||
|
|
||||||
if (windowPosition) {
|
if (windowPosition) {
|
||||||
const { x, y } = windowPosition;
|
const { x, y } = windowPosition;
|
||||||
@ -284,7 +285,6 @@ app.once("browser-window-created", (event, win) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
setupSongInfo(win);
|
setupSongInfo(win);
|
||||||
loadPlugins(win);
|
|
||||||
setupAppControls();
|
setupAppControls();
|
||||||
|
|
||||||
win.webContents.on("did-fail-load", (
|
win.webContents.on("did-fail-load", (
|
||||||
|
|||||||
Reference in New Issue
Block a user