Skip to content

Commit

Permalink
fix for bryanbraun#188
Browse files Browse the repository at this point in the history
  • Loading branch information
nichoth committed Nov 14, 2022
1 parent e953150 commit 1f4df9d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion anchor.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
* @return {Boolean} - true if the current device supports touch.
*/
this.isTouchDevice = function() {
return Boolean('ontouchstart' in window || window.TouchEvent || window.DocumentTouch && document instanceof DocumentTouch);
return Boolean('ontouchstart' in window || window.DocumentTouch && document instanceof DocumentTouch);
};

/**
Expand Down
6 changes: 3 additions & 3 deletions anchor.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/anchor.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
* @return {Boolean} - true if the current device supports touch.
*/
this.isTouchDevice = function() {
return Boolean('ontouchstart' in window || window.TouchEvent || window.DocumentTouch && document instanceof DocumentTouch);
return Boolean('ontouchstart' in window || window.DocumentTouch && document instanceof DocumentTouch);
};

/**
Expand Down

0 comments on commit 1f4df9d

Please sign in to comment.