diff --git a/src/webpage/localuser.ts b/src/webpage/localuser.ts index db9dbc9..9947d75 100644 --- a/src/webpage/localuser.ts +++ b/src/webpage/localuser.ts @@ -283,8 +283,10 @@ class Localuser{ this.errorBackoff = 0; else this.errorBackoff++; 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( this.errorBackoff //try to recover from bad domain ){ diff --git a/translations/en.json b/translations/en.json index c7cce94..961f619 100644 --- a/translations/en.json +++ b/translations/en.json @@ -367,7 +367,7 @@ "reason:":"Reason:", "ban":"Ban $1 from $2" }, - "errorReconnect":"Unable to connect to the server, retrying in $1 seconds...", + "errorReconnect":"Unable to connect to the server, retrying in **$1** seconds...", "retrying":"Retrying...", "unableToConnect":"Unable to connect to the Spacebar server. Please try logging out and back in." },