From a5917c2822a554b8eeb5c61edc0fb88f5fbcccd9 Mon Sep 17 00:00:00 2001 From: Syed Ali Abbas Zaidi <88369802+Syed-Ali-Abbas-Zaidi@users.noreply.github.com> Date: Fri, 13 Oct 2023 14:47:37 +0500 Subject: [PATCH] fix: document being undefined issue (#579) --- src/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.js b/src/utils.js index 091a46fb0..debd1b1a7 100644 --- a/src/utils.js +++ b/src/utils.js @@ -138,7 +138,7 @@ export function convertKeyNames(object, nameMap) { * @returns {Object} */ export function parseURL(url) { - const parser = document.createElement('a'); + const parser = document?.createElement('a'); parser.href = url; return parser; }