Skip to content

Commit

Permalink
fix: DomParser usage in SSR (#1180)
Browse files Browse the repository at this point in the history
Resolves #1179
  • Loading branch information
sean-perkins committed Feb 9, 2023
1 parent 53ce49e commit 8c412f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/icon/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { isEncodedDataUrl, isSvgDataUrl, validateContent } from './validate';
export const ioniconContent = new Map<string, string>();
const requests = new Map<string, Promise<any>>();

let parser = new DOMParser();
let parser: DOMParser;

export const getSvgContent = (url: string, sanitize: boolean) => {
// see if we already have a request for this url
Expand Down

0 comments on commit 8c412f6

Please sign in to comment.