fix: Error loading image: [object Event]
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user