修复music bug
This commit is contained in:
parent
f2c4d83671
commit
d36f936f6f
@ -1 +1 @@
|
||||
{"viewportLoc":[0,0],"editorLastFloorId":"jiedao"}
|
||||
{"viewportLoc":[0,0],"editorLastFloorId":"street02"}
|
@ -234,8 +234,8 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
||||
|
||||
});
|
||||
core.registerEvent("setmusics", function (data) {
|
||||
if (!data.img) { core.setLocalStorage('musics', []) } else {
|
||||
let a = core.getLocalStorage('musics') ?? []
|
||||
if (!data.bgm) { core.setLocalStorage('musics', ["theme.opus"]) } else {
|
||||
let a = core.getLocalStorage('musics') ?? ["theme.opus"]
|
||||
if (!a.includes(data.bgm)) a.push(data.bgm)
|
||||
core.setLocalStorage('musics', a)
|
||||
}
|
||||
@ -243,8 +243,8 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
||||
|
||||
});
|
||||
core.registerEvent("setcgs", function (data) {
|
||||
if (!data.img) { core.setLocalStorage('cgs', ["theme.opus"]) } else {
|
||||
let a = core.getLocalStorage('cgs') ?? ["theme.opus"]
|
||||
if (!data.img) { core.setLocalStorage('cgs', []) } else {
|
||||
let a = core.getLocalStorage('cgs') ?? []
|
||||
if (!a.includes(data.img)) a.push(data.img)
|
||||
core.setLocalStorage('cgs', a)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user