Skip to content

Commit 05390a4

Browse files
committed
Actually set the storeName option for real this time
Sgeo noticed that I did it wrong. Thanks!
1 parent 3b56360 commit 05390a4

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

loader.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1472,17 +1472,18 @@ var Module = null;
14721472
// for persistence purposes.
14731473
if (BrowserFS.FileSystem.IndexedDB.isAvailable()) {
14741474
var AsyncMirrorFS = BrowserFS.FileSystem.AsyncMirror,
1475-
IndexedDBFS = BrowserFS.FileSystem.IndexedDB;
1476-
IndexedDBFS.Create(function(e, idbfs) {
1475+
IndexedDBFS = BrowserFS.FileSystem.IndexedDB,
1476+
fileSystemKey = "fileSystemKey" in _game_data ? _game_data.fileSystemKey
1477+
: "emularity";
1478+
IndexedDBFS.Create({ storeName: fileSystemKey },
1479+
function(e, idbfs) {
14771480
if (e) {
14781481
finish(e, inMemory);
14791482
} else {
14801483
AsyncMirrorFS.Create({ sync: inMemory, async: idbfs },
14811484
finish);
14821485
}
1483-
},
1484-
{ storeName: "fileSystemKey" in _game_data ? _game_data.fileSystemKey
1485-
: "emularity" });
1486+
});
14861487
} else {
14871488
finish(e, inMemory);
14881489
}

0 commit comments

Comments
 (0)