Skip to content

Commit

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

0 comments on commit e7a36ab

Please sign in to comment.