From 1be4bc02d6c10937a37475f23c9ce383e89e4e03 Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Wed, 25 Nov 2020 14:59:32 +0100 Subject: [PATCH] MOBILE-3523 ddmarker: Fix ddmarker offline if no background image --- src/addon/qtype/ddmarker/classes/ddmarker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/addon/qtype/ddmarker/classes/ddmarker.ts b/src/addon/qtype/ddmarker/classes/ddmarker.ts index 90b5686b1..0379c7322 100644 --- a/src/addon/qtype/ddmarker/classes/ddmarker.ts +++ b/src/addon/qtype/ddmarker/classes/ddmarker.ts @@ -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;