Skip to content

Commit

Permalink
Test forcing download data to be always displayed
Browse files Browse the repository at this point in the history
Doesn't seem to be causing any issues locally
  • Loading branch information
FormularSumo committed Sep 13, 2024
1 parent 525fd81 commit 7771548
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Module.expectedDataFileDownloads++;
var size = packageSize;
console.log("onprogress")
if (event.total) size = event.total;
if (event.loaded) {
// if (event.loaded) {
console.log("eventloaded")
if (!xhr.addedTotal) {
xhr.addedTotal = true;
Expand All @@ -56,9 +56,9 @@ Module.expectedDataFileDownloads++;
}
total = Math.ceil(total * Module.expectedDataFileDownloads/num);
if (Module['setStatus']) Module['setStatus']('Downloading data... (' + loaded + '/' + total + ')');
} else if (!Module.dataFileDownloads) {
if (Module['setStatus']) Module['setStatus']('Downloading data...');
}
// } else if (!Module.dataFileDownloads) {
// if (Module['setStatus']) Module['setStatus']('Downloading data...');
// }
};
xhr.onerror = function(event) {
throw new Error("NetworkError for: " + packageName);
Expand Down

0 comments on commit 7771548

Please sign in to comment.