From 2ddf1afd4d45e5e1205cea666757bf2d854b5148 Mon Sep 17 00:00:00 2001 From: "Stefan@AWG" Date: Thu, 18 Jun 2020 20:00:50 +0200 Subject: [PATCH] refactor(tutorials.js): change order of function calls at the beginning of loadTutorialStep --- js/mei-tutorials.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/mei-tutorials.js b/js/mei-tutorials.js index 8e717db4..f630e6de 100644 --- a/js/mei-tutorials.js +++ b/js/mei-tutorials.js @@ -141,15 +141,15 @@ function loadTutorialStep(data, stepNum) { console.log('\nloading step ' + stepNum + ', maximum step is ' + data.steps.length); - // do not allow download or continuation before tutorial is set up - disallowDownload(); - blockNextStep(); - //if all steps are passed, move on to the final page, and skip rest of function if(stepNum >= data.steps.length) { showFinalPage(data); return true; } + + // do not allow download or continuation before tutorial is set up + disallowDownload(); + blockNextStep(); //retrieve step object from data var step = data.steps[stepNum];