Skip to content

Commit 6252818

Browse files
committed
Merge branch 'master' of https://github.com/puneetkay/intro.js into puneetkay-master
2 parents eaaa2dd + 2055694 commit 6252818

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

intro.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,10 @@
295295
function _exitIntro(targetElement) {
296296
//remove overlay layer from the page
297297
var overlayLayer = targetElement.querySelector('.introjs-overlay');
298+
//return if intro already completed or skipped
299+
if(overlayLayer == null){
300+
return;
301+
}
298302
//for fade-out animation
299303
overlayLayer.style.opacity = 0;
300304
setTimeout(function () {

minified/intro.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)