use Electron with ToastXML instead of SnoreToast

* Add support for protocol commands
* Remove node-notifier dependency
This commit is contained in:
Araxeus
2023-01-07 19:31:29 +02:00
parent e6146940b1
commit 2c49f6c740
18 changed files with 193 additions and 187 deletions

View File

@ -95,7 +95,7 @@ const registerProvider = (win) => {
await handleData(responseText, win);
handlingData = false;
callbacks.forEach((c) => {
c(songInfo);
c(songInfo, "video-src-changed");
});
});
ipcMain.on("playPaused", (_, { isPaused, elapsedSeconds }) => {
@ -103,7 +103,7 @@ const registerProvider = (win) => {
songInfo.elapsedSeconds = elapsedSeconds;
if (handlingData) return;
callbacks.forEach((c) => {
c(songInfo);
c(songInfo, "playPaused");
});
})
};