Skip to content

Commit 3567e33

Browse files
committed
Checks if tutorial exists before hiding it
Change-Id: I64798ae1a04366a415dbd4d6a3c65166ba3ca0a5
1 parent 8db0e1f commit 3567e33

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dev/js/src/tour/tours.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,10 @@ define(['lib/intro', 'vc', 'hint', 'menu', 'vc/doc', 'vc/docgroup'],
248248
* Hides the tutorial. If it is opened in an iframe the searchbar which is needed for the tour is not visible anymore.
249249
*/
250250
if(this._currentStep == 1){
251+
if(doe.querySelector('#tutorial')){
251252
let tutel = doe.querySelector('#tutorial');
252253
tutel.style.display = 'none';
254+
}
253255
}
254256
if(this._currentStep == 9){
255257
let statbut = doe.querySelector('.statistic');

0 commit comments

Comments
 (0)