debug
This commit is contained in:
parent
7e4b5e2c15
commit
596f63f77e
3 changed files with 7 additions and 3 deletions
6
dist/main.js
vendored
6
dist/main.js
vendored
|
@ -15,8 +15,6 @@
|
||||||
(function () {
|
(function () {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
if (!window.UGAPP || !window.UGAPP.store || !window.UGAPP.store.jmuse_settings) { return }
|
|
||||||
|
|
||||||
const getIndexPath = (id) => {
|
const getIndexPath = (id) => {
|
||||||
const idStr = String(id);
|
const idStr = String(id);
|
||||||
// 获取最后三位,倒序排列
|
// 获取最后三位,倒序排列
|
||||||
|
@ -42,6 +40,10 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
const main = () => {
|
const main = () => {
|
||||||
|
// @ts-ignore
|
||||||
|
if (!window.UGAPP || !window.UGAPP.store || !window.UGAPP.store.jmuse_settings) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
const scorePlayer = window.UGAPP.store.jmuse_settings.score_player;
|
const scorePlayer = window.UGAPP.store.jmuse_settings.score_player;
|
||||||
const { id, vid } = scorePlayer.json;
|
const { id, vid } = scorePlayer.json;
|
||||||
|
|
|
@ -16,7 +16,6 @@ export default {
|
||||||
format: "iife",
|
format: "iife",
|
||||||
sourcemap: false,
|
sourcemap: false,
|
||||||
banner: getBannerText,
|
banner: getBannerText,
|
||||||
intro: "if (!window.UGAPP || !window.UGAPP.store || !window.UGAPP.store.jmuse_settings) { return }"
|
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
typescript({
|
typescript({
|
||||||
|
|
|
@ -5,6 +5,9 @@ import { getIndexPath, waitForDocumentLoaded } from "./utils"
|
||||||
|
|
||||||
const main = () => {
|
const main = () => {
|
||||||
|
|
||||||
|
// @ts-ignore
|
||||||
|
if (!window.UGAPP || !window.UGAPP.store || !window.UGAPP.store.jmuse_settings) { return }
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
const scorePlayer: ScorePlayerData = window.UGAPP.store.jmuse_settings.score_player
|
const scorePlayer: ScorePlayerData = window.UGAPP.store.jmuse_settings.score_player
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue