Merge pull request #2622 from dpalou/MOBILE-3523

MOBILE-3523 ddmarker: Fix ddmarker offline if no background image
main
Dani Palou 2020-11-25 15:00:11 +01:00 committed by GitHub
commit 221b1071d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;