Skip to content

Commit

Permalink
Fixed EOL before MR
Browse files Browse the repository at this point in the history
  • Loading branch information
RicoRodriges committed Jan 26, 2020
1 parent 7c660cf commit 883fa12
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Build_Release/openclaw.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
<meta property="og:description" content="OpenClaw open source project">
<!--<meta property="og:image" content="preview.png">-->

<!-- Change default viewport width here according to canvas width -->
<meta name="viewport" content="width=660">

<style>
#console {
width: 100%;
Expand Down Expand Up @@ -175,8 +178,12 @@
setStatus: function (text) {
if (loadingElement) {
Module.canvas.style.display = "none";
var progress = Module.dataFileDownloads["openclaw.data"].loaded / Module.dataFileDownloads["openclaw.data"].total * 100;
loadingElement.innerHTML = "Game resources are downloading... " + (progress | 0) + "%";
var progress = (Module.dataFileDownloads["openclaw.data"].loaded / Module.dataFileDownloads["openclaw.data"].total * 100) | 0;
if (progress < 100) {
loadingElement.innerHTML = "Game resources are downloading... " + (progress | 0) + "%";
} else {
loadingElement.innerHTML = "Game resources have been downloaded. Game is loading...";
}
}
},

Expand Down

0 comments on commit 883fa12

Please sign in to comment.