Skip to content

Commit fb7ebf7

Browse files
authored
Merge branch 'master' into added-ignore-special-schemes
2 parents fc40e2e + 5fc1da3 commit fb7ebf7

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,10 @@
8787

8888
### Fixed
8989

90-
- Fixed the spinner top and bottom margin
90+
- Fixed the spinner top and bottom margin
91+
92+
## v1.6.5
93+
94+
### Fixed
95+
96+
- Fixed the loader when using CMD + Click in macOS

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "nextjs-toploader",
3-
"version": "1.6.4",
4-
"description": "A Next.js Top Loading Bar component made using nprogress, works with Next.js 13.",
3+
"version": "1.6.5",
4+
"description": "A Next.js Top Loading Bar component made using nprogress, works with Next.js 14.",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",
77
"scripts": {

src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ const NextTopLoader = ({
169169
const isExternalLink = (anchor as HTMLAnchorElement).target === '_blank';
170170
const isSpecialScheme = ['tel:', 'mailto:', 'sms:', 'blob:', 'download:'].some((scheme) => newUrl.startsWith(scheme));
171171
const isAnchor = isAnchorOfCurrentUrl(currentUrl, newUrl);
172-
if (newUrl === currentUrl || isAnchor || isExternalLink || isSpecialScheme || event.ctrlKey) {
172+
if (newUrl === currentUrl || isAnchor || isExternalLink || isSpecialScheme || event.ctrlKey|| event.metaKey) {
173173
NProgress.start();
174174
NProgress.done();
175175
[].forEach.call(npgclass, function (el: Element) {

0 commit comments

Comments
 (0)