From e7a36abd4a40628137a5ad2a16c8e5bcfa821d11 Mon Sep 17 00:00:00 2001 From: atanasster Date: Sun, 18 Oct 2020 11:26:58 -0400 Subject: [PATCH] fix: typecheck --- ui/blocks/src/utils/url.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/blocks/src/utils/url.ts b/ui/blocks/src/utils/url.ts index fecfbc09d..97a662088 100644 --- a/ui/blocks/src/utils/url.ts +++ b/ui/blocks/src/utils/url.ts @@ -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);