setup SongInfo **once**

This commit is contained in:
Araxeus
2021-05-10 04:15:56 +03:00
parent 7942efa202
commit 7cf78c6635
8 changed files with 20 additions and 26 deletions

View File

@ -1,6 +1,6 @@
const { Notification } = require("electron");
const is = require("electron-is");
const getSongInfo = require("../../providers/song-info");
const registerCallback = require("../../providers/song-info");
const { notificationImage } = require("./utils");
const { setupInteractive, notifyInteractive } = require("./interactive")
@ -29,7 +29,6 @@ module.exports = (win, options) => {
if (isInteractive) {
setupInteractive(win, options.unpauseNotification);
}
const registerCallback = getSongInfo(win);
let oldNotification;
let oldURL = "";
win.once("ready-to-show", () => {