Skip to content

Commit

Permalink
fix: document being undefined issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Syed-Ali-Abbas-Zaidi committed Oct 13, 2023
1 parent 6bccf04 commit 05d6840
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 05d6840

Please sign in to comment.