This commit is contained in:
Xmader 2019-12-01 00:13:14 -05:00
parent 7e4b5e2c15
commit 596f63f77e
3 changed files with 7 additions and 3 deletions

6
dist/main.js vendored
View file

@ -15,8 +15,6 @@
(function () {
'use strict';
if (!window.UGAPP || !window.UGAPP.store || !window.UGAPP.store.jmuse_settings) { return }
const getIndexPath = (id) => {
const idStr = String(id);
// 获取最后三位,倒序排列
@ -42,6 +40,10 @@
};
const main = () => {
// @ts-ignore
if (!window.UGAPP || !window.UGAPP.store || !window.UGAPP.store.jmuse_settings) {
return;
}
// @ts-ignore
const scorePlayer = window.UGAPP.store.jmuse_settings.score_player;
const { id, vid } = scorePlayer.json;