From 4ad36d2527a91e5d7c86cb2b66722973ead8e56e Mon Sep 17 00:00:00 2001 From: Miodec Date: Fri, 23 Sep 2022 16:01:35 +0200 Subject: [PATCH] defaulting to false also affecting stop function based on the parameter to smooth the loading bar a bit --- frontend/src/ts/pages/loading.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/ts/pages/loading.ts b/frontend/src/ts/pages/loading.ts index dd1f028de..3e49c356e 100644 --- a/frontend/src/ts/pages/loading.ts +++ b/frontend/src/ts/pages/loading.ts @@ -1,10 +1,10 @@ import * as Misc from "../utils/misc"; import Page from "./page"; -export function updateBar(percentage: number, fast?: boolean): void { +export function updateBar(percentage: number, fast = false): void { const speed = fast ? 100 : 1000; $(".pageLoading .fill, .pageAccount .fill") - .stop(true, true) + .stop(true, fast) .animate( { width: percentage + "%",