Skip to content

Commit

Permalink
fix: document typecheck
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Oct 18, 2020
1 parent b668105 commit 3d4a38e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ui/blocks/src/utils/url.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ export const getURL = () => {
window.location !== window.parent.location &&
window.parent.location
? window.parent.location.href
: document.location.href) || '';
: typeof document
? document.location.href
: '') || '';
return new URL(pageURL);
};

0 comments on commit 3d4a38e

Please sign in to comment.