Skip to content

Commit 74dc93f

Browse files
committed
Better if
1 parent 8499dc4 commit 74dc93f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

intro.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
nextStepButton = targetElm.querySelector('.introjs-nextbutton');
9999

100100
self._onKeyDown = function(e) {
101-
if (e.keyCode === 27 && self._options.exitOnEsc) {
101+
if (e.keyCode === 27 && self._options.exitOnEsc == true) {
102102
//escape key pressed, exit the intro
103103
_exitIntro.call(self, targetElm);
104104
} else if(e.keyCode === 37) {
@@ -532,7 +532,7 @@
532532
targetElm.appendChild(overlayLayer);
533533

534534
overlayLayer.onclick = function() {
535-
if(self._options.exitOnOverlayClick) {
535+
if(self._options.exitOnOverlayClick == true) {
536536
_exitIntro.call(self, targetElm);
537537
}
538538
};

0 commit comments

Comments
 (0)