Skip to content
This repository has been archived by the owner on Jul 29, 2019. It is now read-only.

Fix #3338: Endless image loading errors when broken image could not be loaded #4245

Merged
merged 1 commit into from
Feb 8, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/network/Images.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class Images {
}

//Clear the old subscription to the error event and put a new in place that only handle errors in loading the brokenImageUrl
imageToLoadBrokenUrlOn.onerror = () => {
imageToLoadBrokenUrlOn.image.onerror = () => {
console.error("Could not load brokenImage:", brokenUrl);
// cache item will contain empty image, this should be OK for default
};
Expand Down