Skip to content

Commit 185ed17

Browse files
committed
MOBILE-3523 quiz: Fix download ddmarker files
1 parent 8098acd commit 185ed17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/addon/qtype/ddmarker/providers/handler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ export class AddonQtypeDdMarkerHandler implements CoreQuestionHandler {
124124
getAdditionalDownloadableFiles(question: any, usageId: number): string[] {
125125
this.questionHelper.extractQuestionScripts(question, usageId);
126126

127-
if (question.amdArgs && typeof question.amdArgs[1] !== 'undefined') {
127+
if (question.amdArgs && typeof question.amdArgs[1] == 'string') {
128128
// Moodle 3.6+.
129129
return [question.amdArgs[1]];
130130
}

0 commit comments

Comments
 (0)