Skip to content

Commit

Permalink
fix: document being undefined issue (#579)
Browse files Browse the repository at this point in the history
  • Loading branch information
Syed-Ali-Abbas-Zaidi authored Oct 13, 2023
1 parent 6bccf04 commit a5917c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit a5917c2

Please sign in to comment.