fix: Error loading image: [object Event]
This commit is contained in:
@@ -146,8 +146,8 @@ const insertFiles = function (
|
||||
}
|
||||
};
|
||||
|
||||
newImg.onerror = (event) => {
|
||||
throw new Error(`Error loading image: ${event}`);
|
||||
newImg.onerror = () => {
|
||||
throw new Error(`Error loading image: ${src}`);
|
||||
};
|
||||
|
||||
newImg.src = src;
|
||||
|
||||
Reference in New Issue
Block a user