misc: remove progress bar for instant navigations

This commit is contained in:
Xylight committed 2024-07-09 16:31:19 -07:00
1 parent 49a0e983df
commit 4b730ab415
3 files changed
+7 -5

No files matched your search

+4 -2
View File
@@ -32,17 +32,19 @@
nProgress.configure({
minimum: 0.4,
trickleSpeed: 200,
showSpinner: false,
easing: 'ease-out',
speed: 300,
})
let barTimeout: any = 0
$: {
if (browser) {
if ($navigating) {
nProgress.start()
barTimeout = setTimeout(() => nProgress.start(), 100)
}
if (!$navigating) {
clearTimeout(barTimeout)
nProgress.done()
}
}