Skip to content

Commit 81d2b65

Browse files
committed
Update util.ts
1 parent eab2930 commit 81d2b65

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/util.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,10 @@ export async function archiveConversation(browser: Browser, id: string) {
7878
while (matIcons.length > 0) {
7979
const matIcon = matIcons[0]!
8080
const iconName = matIcon.getAttribute("fonticon")
81+
const size = getComputedStyle(matIcon).fontSize
82+
8183
const img = document.createElement("img")
82-
img.src = `https://fonts.gstatic.com/s/i/short-term/release/materialsymbolsoutlined/${iconName}/default/${getComputedStyle(matIcon).fontSize}.svg`
84+
img.src = `https://fonts.gstatic.com/s/i/short-term/release/materialsymbolsoutlined/${iconName}/default/${size}.svg`
8385
matIcon.insertAdjacentElement("afterend", img)
8486
matIcon.remove()
8587
}

0 commit comments

Comments
 (0)