From 3a653de59298fb8f60779ff60e8e6eb1e1d0a3e4 Mon Sep 17 00:00:00 2001 From: Jack Date: Mon, 14 Dec 2020 18:34:31 +0000 Subject: [PATCH] fixed a bug where the pace caret would reset to the beginning after the account data was loaded --- src/js/account.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/js/account.js b/src/js/account.js index 7cb941199..a33816a49 100644 --- a/src/js/account.js +++ b/src/js/account.js @@ -313,7 +313,6 @@ function getAccountDataAndInit() { if (db_getSnapshot() === null) { throw "Missing db snapshot. Client likely could not connect to the backend."; } - initPaceCaret(true); if (!configChangedBeforeDb) { if (cookieConfig === null) { accountIconLoading(false); @@ -368,6 +367,10 @@ function getAccountDataAndInit() { } else { accountIconLoading(false); } + if (config.paceCaret === "pb") { + // initPaceCaret(true); + $("#paceCaret").addClass("hidden"); + } try { if ( config.resultFilters === undefined ||