Skip to content

Commit 4907a97

Browse files
committed
Add refresh() method to refresh helper layer manually. usablica#121 usablica#119
1 parent 9249436 commit 4907a97

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

intro.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -719,6 +719,10 @@
719719
exit: function() {
720720
_exitIntro.call(this, this._targetElement);
721721
},
722+
refresh: function() {
723+
_setHelperLayerPosition.call(this, document.querySelector('.introjs-helperLayer'));
724+
return this;
725+
},
722726
onbeforechange: function(providedCallback) {
723727
if (typeof (providedCallback) === 'function') {
724728
this._introBeforeChangeCallback = providedCallback;

0 commit comments

Comments
 (0)