next-nprogress-bar
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -34,3 +34,7 @@ 'use strict'; | ||
var handleAnchorClick_1 = function (event) { | ||
var targetUrl = new URL(event.currentTarget.href); | ||
var anchorElement = event.currentTarget; | ||
// Skip anchors with target="_blank" | ||
if (anchorElement.target === '_blank') | ||
return; | ||
var targetUrl = new URL(anchorElement.href); | ||
var currentUrl = new URL(location.href); | ||
@@ -37,0 +41,0 @@ if (!shallowRouting || !isSameURL(targetUrl, currentUrl)) { |
{ | ||
"name": "next-nprogress-bar", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "NextJS progress bar compatible with new app directory", | ||
@@ -5,0 +5,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
26032
117