mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-16 21:28:06 +00:00
feat: support unblock unplayable music
This commit is contained in:
parent
962b81a628
commit
01e2dc955e
5 changed files with 23 additions and 1 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import { app, ipcMain } from "electron";
|
||||
import match from "@nondanee/unblockneteasemusic";
|
||||
|
||||
export function initIpcMain(win) {
|
||||
// Make vuex copy for electron.
|
||||
|
|
@ -8,6 +9,12 @@ export function initIpcMain(win) {
|
|||
global.vuexCopy = state;
|
||||
});
|
||||
|
||||
ipcMain.on("unblock-music", (event, id) => {
|
||||
match(id, ["qq", "kuwo", "migu"]).then((res) => {
|
||||
event.returnValue = res;
|
||||
});
|
||||
});
|
||||
|
||||
ipcMain.on("close", () => {
|
||||
win.close();
|
||||
app.quit();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue