defaulting to false

also affecting stop function based on the parameter to smooth the loading bar a bit
This commit is contained in:
Miodec 2022-09-23 16:01:35 +02:00
parent 9f8adbbb25
commit 4ad36d2527

View file

@ -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 + "%",