fix(showcase): fixed an error where music cannot be played when custom background is used
This commit is contained in:
@@ -81,7 +81,7 @@ export default class Music {
|
||||
}
|
||||
|
||||
changeMusic(name) {
|
||||
if (name !== this.#currentMusic && !this.#isUsingCustomMusic) {
|
||||
if (name !== null && name !== this.#currentMusic && !this.#isUsingCustomMusic) {
|
||||
this.#currentMusic = name
|
||||
if (this.#useMusic) {
|
||||
this.#audioLoopEl.pause()
|
||||
|
||||
Reference in New Issue
Block a user