Merge pull request #269 from Araxeus/fix-XHR-duplicate-callback

fix song-info callback duplication
This commit is contained in:
th-ch
2021-05-28 23:18:10 +02:00
committed by GitHub
10 changed files with 56 additions and 67 deletions

View File

@ -11,6 +11,7 @@ const { setApplicationMenu } = require("./menu");
const { fileExists, injectCSS } = require("./plugins/utils");
const { isTesting } = require("./utils/testing");
const { setUpTray } = require("./tray");
const { setupSongInfo } = require("./providers/song-info");
// Catch errors and log them
unhandled({
@ -157,6 +158,7 @@ function createMainWindow() {
}
app.once("browser-window-created", (event, win) => {
setupSongInfo(win);
loadPlugins(win);
win.webContents.on("did-fail-load", (