Browse Source

Fixed endless image loading errors when broken image could not be loaded (#4245)

develop
justinharrell 5 years ago
committed by Alexander Wunschik
parent
commit
f57e1d545c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib/network/Images.js

+ 1
- 1
lib/network/Images.js View File

@ -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 //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); console.error("Could not load brokenImage:", brokenUrl);
// cache item will contain empty image, this should be OK for default // cache item will contain empty image, this should be OK for default
}; };

Loading…
Cancel
Save