mirror of
https://github.com/EmulatorJS/EmulatorJS.git
synced 2026-02-06 11:17:36 +00:00
Merge pull request #949 from kellenmace/bugfix/background-image-parentheses
Fix a bug preventing the use of background image URLs that contain parentheses
This commit is contained in:
commit
06e597edf8
@ -274,7 +274,7 @@ class EmulatorJS {
|
||||
if (typeof this.config.backgroundImg === "string") {
|
||||
this.game.classList.add("ejs_game_background");
|
||||
if (this.config.backgroundBlur) this.game.classList.add("ejs_game_background_blur");
|
||||
this.game.setAttribute("style", "--ejs-background-image: url("+this.config.backgroundImg+"); --ejs-background-color: "+this.config.backgroundColor+";");
|
||||
this.game.setAttribute("style", `--ejs-background-image: url("${this.config.backgroundImg}"); --ejs-background-color: ${this.config.backgroundColor};`);
|
||||
this.on("start", () => {
|
||||
this.game.classList.remove("ejs_game_background");
|
||||
if (this.config.backgroundBlur) this.game.classList.remove("ejs_game_background_blur");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user