mirror of
https://github.com/EmulatorJS/EmulatorJS.git
synced 2026-02-06 11:17:36 +00:00
Prioritize gameName for local storage identifier
This commit is contained in:
parent
32c524f32f
commit
b3c55477de
@ -3792,7 +3792,9 @@ class EmulatorJS {
|
||||
}
|
||||
getLocalStorageKey() {
|
||||
let identifier = (this.config.gameId || 1) + "-" + this.getCore(true);
|
||||
if (typeof this.config.gameUrl === "string" && !this.config.gameUrl.toLowerCase().startsWith("blob:")) {
|
||||
if (typeof this.config.gameName === "string") {
|
||||
identifier += "-" + this.config.gameName;
|
||||
} else if (typeof this.config.gameUrl === "string" && !this.config.gameUrl.toLowerCase().startsWith("blob:")) {
|
||||
identifier += "-" + this.config.gameUrl;
|
||||
} else if (this.config.gameUrl instanceof File) {
|
||||
identifier += "-" + this.config.gameUrl.name;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user