Skip to content

Commit 93d3f61

Browse files
committed
fixed type for svg image #2198
1 parent 69bd788 commit 93d3f61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Source/Components/ImageGlass.Settings/WebUI/src/DXCanvas_Webview2/webComponents/HapplaBoxHTMLElement.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ export class HapplaBoxHTMLElement extends HTMLElement {
142142
});
143143

144144
// fix the path of image
145-
const imgEls = Array.from(this.#boxContentEl.querySelectorAll('image[href]'));
146-
imgEls.forEach((img: HTMLImageElement) => {
145+
const imageEls = Array.from(this.#boxContentEl.querySelectorAll('image[href]'));
146+
imageEls.forEach((img: SVGImageElement) => {
147147
const href = img.getAttribute('href') ?? '';
148148

149149
// check if the href is valid

0 commit comments

Comments
 (0)