Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
fix(popup): use PLATFOTM.global.document.location
Browse files Browse the repository at this point in the history
DOM.location can be undefined for unrecognized routes

fixes #173
  • Loading branch information
doktordirk committed Jun 4, 2016
1 parent 4081569 commit fa0e8a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit fa0e8a3

Please sign in to comment.