Skip to content

Commit 2055694

Browse files
committed
Calling exit() on null issue solved
1 parent 4f20edc commit 2055694

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
@@ -278,6 +278,10 @@
278278
function _exitIntro(targetElement) {
279279
//remove overlay layer from the page
280280
var overlayLayer = targetElement.querySelector('.introjs-overlay');
281+
//return if intro already completed or skipped
282+
if(overlayLayer == null){
283+
return;
284+
}
281285
//for fade-out animation
282286
overlayLayer.style.opacity = 0;
283287
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)