Checks if tutorial exists before hiding it
Change-Id: I64798ae1a04366a415dbd4d6a3c65166ba3ca0a5
diff --git a/dev/js/src/tour/tours.js b/dev/js/src/tour/tours.js
index ec4a631..43ceea1 100644
--- a/dev/js/src/tour/tours.js
+++ b/dev/js/src/tour/tours.js
@@ -248,8 +248,10 @@
* Hides the tutorial. If it is opened in an iframe the searchbar which is needed for the tour is not visible anymore.
*/
if(this._currentStep == 1){
+ if(doe.querySelector('#tutorial')){
let tutel = doe.querySelector('#tutorial');
tutel.style.display = 'none';
+ }
}
if(this._currentStep == 9){
let statbut = doe.querySelector('.statistic');