local-links
Advanced tools
Comparing version 1.0.8 to 1.0.9
@@ -53,8 +53,8 @@ function isHTMLElement(obj) { | ||
// Window has no port, but anchor does | ||
if (!window.location.port && anchor.port) { | ||
// IE9 sometimes includes the default port on anchor.host | ||
// Window has no port, but anchor has the default port | ||
if (!window.location.port && anchor.port && (anchor.port === '80' || anchor.port === '443')) { | ||
// IE9 sometimes includes the default port (80 or 443) on anchor.host | ||
// so we append the default port to the window host in this case | ||
// so they will match for the host equality check [1] | ||
wHost += ':80'; | ||
wHost += ':' + anchor.port; | ||
} | ||
@@ -61,0 +61,0 @@ |
{ | ||
"name": "local-links", | ||
"description": "Determine cross-browser if an event or anchor element should be handled locally.", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"author": "Luke Karrys <luke@lukekarrys.com>", | ||
@@ -6,0 +6,0 @@ "bugs": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18066