Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

local-links

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

local-links - npm Package Compare versions

Comparing version 1.0.8 to 1.0.9

8

local-links.js

@@ -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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc