diff options
Diffstat (limited to '')
-rw-r--r-- | plugins/TakeATour/js/custom-bootstrap-tour-standalone.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/TakeATour/js/custom-bootstrap-tour-standalone.js b/plugins/TakeATour/js/custom-bootstrap-tour-standalone.js index 70a155a53..28308b832 100644 --- a/plugins/TakeATour/js/custom-bootstrap-tour-standalone.js +++ b/plugins/TakeATour/js/custom-bootstrap-tour-standalone.js @@ -851,7 +851,7 @@ }).call(_this);
current_path = document.location.href;
if (_this._isRedirect(path, current_path)) {
- if (toString.call(path) === "[object RegExp]") {
+ if ({}.toString.call(path) === "[object RegExp]") {
_this._redirect(step, path);
}
else {
@@ -1002,7 +1002,7 @@ };
Tour.prototype._isRedirect = function(path, currentPath) {
- return (path != null) && path !== "" && ((toString.call(path) === "[object RegExp]" && !path.test(currentPath)) || (toString.call(path) === "[object String]" && path !== currentPath.replace("http://", "").replace("https://", "")));
+ return (path != null) && path !== "" && (({}.toString.call(path) === "[object RegExp]" && !path.test(currentPath)) || ({}.toString.call(path) === "[object String]" && path !== currentPath.replace("http://", "").replace("https://", "")));
};
Tour.prototype._redirect = function(step, path) {
|