Closed mossroy closed 2 years ago
A new i Image object is created, and it's necessary that loaded() is called for the next image/video to be loaded.
i
Image
loaded()
But loaded() is only called in i.onload function, and there is no i.onerror function
i.onload
i.onerror
I managed to solve that by adding an i.onerror function, that display an error message in the wrapper, and calls loaded()
wrapper
I can make a PR if you want
A new
i
Image
object is created, and it's necessary thatloaded()
is called for the next image/video to be loaded.But
loaded()
is only called ini.onload
function, and there is noi.onerror
functionI managed to solve that by adding an
i.onerror
function, that display an error message in thewrapper
, and callsloaded()
I can make a PR if you want