Skip to content

Commit

Permalink
fix...
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-Cena committed Apr 29, 2022
1 parent 5746f95 commit 9286297
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/docusaurus-theme-classic/src/nprogress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const delay = 200;

const clientModule: ClientModule = {
onRouteUpdate({location, previousLocation}) {
if (location.pathname !== previousLocation?.pathname) {
if (previousLocation && location.pathname !== previousLocation.pathname) {
const progressBarTimeout = window.setTimeout(() => {
nprogress.start();
}, delay);
Expand Down

0 comments on commit 9286297

Please sign in to comment.