Skip to content

Commit 5381ec7

Browse files
authored
Update intro.js
1 parent 30c304e commit 5381ec7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

intro.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1058,8 +1058,10 @@
10581058
prevTooltipButton.tabIndex = '-1';
10591059
skipTooltipButton.innerHTML = this._options.skipLabel;
10601060
} else if (this._introItems.length - 1 == this._currentStep || this._introItems.length == 1) {
1061-
skipTooltipButton.innerHTML = this._options.doneLabel;
1062-
skipTooltipButton.className = 'introjs-button introjs-donebutton';
1061+
if (skipTooltipButton) {
1062+
skipTooltipButton.innerHTML = this._options.doneLabel;
1063+
skipTooltipButton.className = 'introjs-button introjs-donebutton';
1064+
}
10631065
prevTooltipButton.className = 'introjs-button introjs-prevbutton';
10641066

10651067
if (this._options.hideNext == true) {

0 commit comments

Comments
 (0)