Fix status bar lagging
MODIFY
HiddenWallet.Gui/app/js/status-client.js
HiddenWallet.Gui/app/js/status-client.js
@@ -84,9 +84,6 @@ function signalrStatusUpdate() {
}
function statusSignalRShow() {
-
- var status = document.getElementById("status");
-
let text = "";
let blocksLeftDisplay = "";
let mempoolDisplay = "";
@@ -150,12 +147,18 @@ function statusSignalRShow() {
progressType = "danger";
}
+ var progressBarDivElem = document.getElementById("progress-bar-div");
if (progressType === "") {
- status.innerHTML = '<div class="progress" style="margin:0"><div class="progress-bar" role="progressbar" style="width:' + progress + '%;"><span><strong>' + text + '</strong></span></div></div>';
+ progressBarDivElem.className = "progress-bar";
}
else {
- status.innerHTML = '<div class="progress" style="margin:0"><div class="progress-bar progress-bar-' + progressType + ' role="progressbar" style="width:' + progress + '%;"><span><strong>' + text + '</strong></span></div></div>';
+ progressBarDivElem.className = "progress-bar progress-bar-" + progressType;
}
+
+ var progressBarTextElem = document.getElementById("progress-bar-text");
+ progressBarTextElem.innerText = text;
+
+ progressBarDivElem.style.width = progress + "%";
}
function updateDecryptButton() {

MODIFY
HiddenWallet.Gui/index.html
HiddenWallet.Gui/index.html
<hr id="after-menu-hr"/>
<div id="content"> </div>
</div>
- <div id="status" style="position:absolute; bottom:0px; width: 100%;"></div>
+ <div id="status" style="position:absolute; bottom:0px; width: 100%;">
+ <div class="progress" style="margin:0">
+ <div id="progress-bar-div" role="progressbar">
+ <strong>
+ <span id="progress-bar-text">
+
+ </span>
+ </strong>
+ </div>
+ </div>
+ </div>
<script src="app/js/hw-client.js"></script>
<script src="app/js/default.js"></script>

Fix status bar lagging