fix: Error loading image: [object Event]

This commit is contained in:
Tom Moor
2023-07-08 13:57:25 -04:00
parent e59e121179
commit cf32d227e6

View File

@@ -146,8 +146,8 @@ const insertFiles = function (
} }
}; };
newImg.onerror = (event) => { newImg.onerror = () => {
throw new Error(`Error loading image: ${event}`); throw new Error(`Error loading image: ${src}`);
}; };
newImg.src = src; newImg.src = src;