We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84359f5 commit 1235cffCopy full SHA for 1235cff
src/pages/home/previews/audio.tsx
@@ -73,6 +73,16 @@ const Preview = () => {
73
lrcType: objStore.provider === "NeteaseMusic" ? 1 : 3,
74
audio: audios.map(objToAudio),
75
})
76
+
77
+ // Apply monkey patch to fix https://github.com/DIYgod/APlayer/issues/283
78
+ const _switch = ap.lrc.switch
79
+ const _update = ap.lrc.update
80
+ ap.lrc.switch = (index: any) => {
81
+ ap.lrc.update = () => {}
82
+ _switch.call(ap.lrc, index)
83
+ ap.lrc.update = _update
84
+ }
85
86
if (objStore.provider === "NeteaseMusic") {
87
ap.on("loadstart", () => {
88
const i = ap.list.index
0 commit comments