Skip to content

Commit

Permalink
fix isBlob
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSGJ authored Oct 16, 2023
1 parent f8d853d commit 5409639
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ const NextTopLoader = ({
const isExternalLink = (anchor as HTMLAnchorElement).target === '_blank';
const isBlob = newUrl.startsWith('blob:');
const isAnchor = isAnchorOfCurrentUrl(currentUrl, newUrl);
if (newUrl === currentUrl || isAnchor || isExternalLink || event.ctrlKey) {
if (newUrl === currentUrl || isAnchor || isExternalLink || isBlob || event.ctrlKey) {
NProgress.start();
NProgress.done();
[].forEach.call(npgclass, function (el: Element) {
Expand Down

0 comments on commit 5409639

Please sign in to comment.