Permalink
Browse files

fix(popup): use PLATFOTM.global.document.location

DOM.location can be undefined for unrecognized routes

fixes #173
  • Loading branch information...
doktordirk committed Jun 4, 2016
1 parent 4081569 commit fa0e8a3081db77c6b0d670f7f6e1a763b392113b
Showing with 1 addition and 1 deletion.
  1. +1 −1 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);

0 comments on commit fa0e8a3

Please sign in to comment.