mirror of
https://github.com/outline/outline.git
synced 2026-11-28 00:09:58 +03:00
fix: Error loading image: [object Event]
This commit is contained in:
1 parent
e59e121179
commit
cf32d227e6
1 file changed
+2
-2
@@ -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