mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-16 13:17:46 +00:00
fix: remove vuexCopy
This commit is contained in:
parent
db14c9283f
commit
487dac4f16
3 changed files with 0 additions and 36 deletions
|
|
@ -2,13 +2,6 @@ import { app, ipcMain } from "electron";
|
|||
import match from "@njzy/unblockneteasemusic";
|
||||
|
||||
export function initIpcMain(win) {
|
||||
// Make vuex copy for electron.
|
||||
global.vuexCopy = null;
|
||||
// 同步 vuex 状态,由于 player 有循环引用问题,拷贝部分属性
|
||||
ipcMain.on("vuex-state", (e, state) => {
|
||||
global.vuexCopy = state;
|
||||
});
|
||||
|
||||
ipcMain.on("unblock-music", (event, track) => {
|
||||
// 兼容 unblockneteasemusic 所使用的 api 字段
|
||||
track.alias = track.alia || [];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue