MOBILE-3523 ddmarker: Fix ddmarker offline if no background image

main
Dani Palou 2020-11-25 14:59:32 +01:00
parent c1411c3ed4
commit 1be4bc02d6
1 changed files with 1 additions and 1 deletions

View File

@ -751,7 +751,7 @@ export class AddonQtypeDdMarkerQuestion {
this.question.loaded = true;
};
if (bgImg.complete && bgImg.naturalWidth) {
if (!bgImg.src || (bgImg.complete && bgImg.naturalWidth)) {
imgLoaded();
return;