Skip to content

Commit 1be4bc0

Browse files
committed
MOBILE-3523 ddmarker: Fix ddmarker offline if no background image
1 parent c1411c3 commit 1be4bc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/addon/qtype/ddmarker/classes/ddmarker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,7 @@ export class AddonQtypeDdMarkerQuestion {
751751
this.question.loaded = true;
752752
};
753753

754-
if (bgImg.complete && bgImg.naturalWidth) {
754+
if (!bgImg.src || (bgImg.complete && bgImg.naturalWidth)) {
755755
imgLoaded();
756756

757757
return;

0 commit comments

Comments
 (0)