Skip to content
This repository has been archived by the owner on Oct 4, 2020. It is now read-only.

Commit

Permalink
Fixed endless image loading errors when broken image could not be loa…
Browse files Browse the repository at this point in the history
…ded (almende#4245)
  • Loading branch information
justinharrell authored and mojoaxel committed Jun 9, 2019
1 parent 69b1259 commit b1c5a45
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit b1c5a45

Please sign in to comment.