single-spa
Advanced tools
Comparing version 2.0.11 to 2.0.12
@@ -227,3 +227,6 @@ 'use strict'; | ||
if (window.location.origin + window.location.pathname === anchorElement.origin + anchorElement.pathname) { | ||
// MS Edge does not put an `origin` property on anchor elements :( | ||
var anchorOrigin = anchorElement.origin || anchorElement.protocol + "//" + anchorElement.hostname + (anchorElement.port ? ':' + anchorElement.port : ''); | ||
if (window.location.origin + window.location.pathname === anchorOrigin + anchorElement.pathname) { | ||
window.location.hash = anchorElement.hash; | ||
@@ -230,0 +233,0 @@ } else { |
{ | ||
"name": "single-spa", | ||
"version": "2.0.11", | ||
"version": "2.0.12", | ||
"description": "Multiple applications, one page", | ||
@@ -5,0 +5,0 @@ "main": "lib/single-spa.js", |
@@ -190,3 +190,6 @@ import { handleChildAppError } from './single-spa-child-app-error.js'; | ||
if (window.location.origin + window.location.pathname === anchorElement.origin + anchorElement.pathname) { | ||
// MS Edge does not put an `origin` property on anchor elements :( | ||
const anchorOrigin = anchorElement.origin || anchorElement.protocol + "//" + anchorElement.hostname + (anchorElement.port ? ':' + anchorElement.port : ''); | ||
if (window.location.origin + window.location.pathname === anchorOrigin + anchorElement.pathname) { | ||
window.location.hash = anchorElement.hash; | ||
@@ -193,0 +196,0 @@ } else { |
58787
1034