bump version to 1.25.4

This commit is contained in:
kwaroran
2023-06-14 10:24:00 +09:00
parent 7ba7103cd2
commit e45483a8c6
6 changed files with 6 additions and 492 deletions

View File

@@ -18,6 +18,7 @@ const safeConvertor = new showdown.Converter({
backslashEscapesHTMLTags: true
})
DOMPurify.addHook("uponSanitizeElement", (node: HTMLElement, data) => {
if (data.tagName === "iframe") {
const src = node.getAttribute("src") || "";
@@ -77,8 +78,6 @@ export async function convertImage(data:Uint8Array) {
if(type === 'PNG' && isAPNG(data)){
return data
}
console.log('converting')
return await resizeAndConvert(data)
}
return data