Skip to content

Commit a167565

Browse files
committed
refactor
1 parent 8d811cb commit a167565

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: resizeImage.mjs

+1-2
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,9 @@ export default async function resizeImage(image_blob, options_) {
2020
if (image_elem.naturalWidth === 0 || image_elem.naturalHeight === 0) {
2121
// 寸法が指定されていないSVGかもしれない
2222
if (image_blob.size > 1 * 1024 * 1024) {
23-
throw new Error("Filesize too large");
23+
throw new Error("filesize too large");
2424
}
2525
const text = await image_blob.text();
26-
console.log(text);
2726
if (/<svg.*>.*<\/svg>/is.test(text)) {
2827
const xml_data = (new DOMParser()).parseFromString(text, "image/svg+xml");
2928
const svg_elem = xml_data.querySelector("svg");

0 commit comments

Comments
 (0)