Skip to content

Commit 8c412f6

Browse files
authored
fix: DomParser usage in SSR (#1180)
Resolves #1179
1 parent 53ce49e commit 8c412f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/icon/request.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { isEncodedDataUrl, isSvgDataUrl, validateContent } from './validate';
33
export const ioniconContent = new Map<string, string>();
44
const requests = new Map<string, Promise<any>>();
55

6-
let parser = new DOMParser();
6+
let parser: DOMParser;
77

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

0 commit comments

Comments
 (0)