From fa0e8a3081db77c6b0d670f7f6e1a763b392113b Mon Sep 17 00:00:00 2001 From: doktordirk Date: Sat, 4 Jun 2016 09:31:46 +0200 Subject: [PATCH] fix(popup): use PLATFOTM.global.document.location DOM.location can be undefined for unrecognized routes fixes https://github.com/SpoonX/aurelia-authentication/issues/173 --- src/popup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/popup.js b/src/popup.js index 1ac3b47..be52125 100644 --- a/src/popup.js +++ b/src/popup.js @@ -61,7 +61,7 @@ export class Popup { let errorData; try { - if (this.popupWindow.location.host === DOM.location.host + if (this.popupWindow.location.host === PLATFORM.global.document.location.host && (this.popupWindow.location.search || this.popupWindow.location.hash)) { const qs = parseUrl(this.popupWindow.location);