change something to use markdown instead of html
This commit is contained in:
@@ -283,8 +283,10 @@ class Localuser{
|
|||||||
this.errorBackoff = 0;
|
this.errorBackoff = 0;
|
||||||
else this.errorBackoff++;
|
else this.errorBackoff++;
|
||||||
this.connectionSucceed = 0;
|
this.connectionSucceed = 0;
|
||||||
|
const loaddesc=document.getElementById("load-desc") as HTMLElement;
|
||||||
|
|
||||||
(document.getElementById("load-desc") as HTMLElement).innerHTML = I18n.getTranslation("errorReconnect",Math.round(0.2 + this.errorBackoff * 2.8)+"")
|
loaddesc.innerHTML ="";
|
||||||
|
loaddesc.append(new MarkDown(I18n.getTranslation("errorReconnect",Math.round(0.2 + this.errorBackoff * 2.8)+"")).makeHTML());
|
||||||
switch(
|
switch(
|
||||||
this.errorBackoff //try to recover from bad domain
|
this.errorBackoff //try to recover from bad domain
|
||||||
){
|
){
|
||||||
|
@@ -367,7 +367,7 @@
|
|||||||
"reason:":"Reason:",
|
"reason:":"Reason:",
|
||||||
"ban":"Ban $1 from $2"
|
"ban":"Ban $1 from $2"
|
||||||
},
|
},
|
||||||
"errorReconnect":"Unable to connect to the server, retrying in <b>$1</b> seconds...",
|
"errorReconnect":"Unable to connect to the server, retrying in **$1** seconds...",
|
||||||
"retrying":"Retrying...",
|
"retrying":"Retrying...",
|
||||||
"unableToConnect":"Unable to connect to the Spacebar server. Please try logging out and back in."
|
"unableToConnect":"Unable to connect to the Spacebar server. Please try logging out and back in."
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user