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; }