Skip to content

Commit

Permalink
Merge pull request crabbly#333 from songlim327/master
Browse files Browse the repository at this point in the history
Add check for IOS Chrome method in browser.js
  • Loading branch information
crabbly authored May 27, 2019
2 parents 037d208 + 813074e commit 7fbe2d3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/js/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ const Browser = {
isSafari: () => {
return Object.prototype.toString.call(window.HTMLElement).indexOf('Constructor') > 0 ||
navigator.userAgent.toLowerCase().indexOf('safari') !== -1
},
// IOS Chrome
isIOSChrome: () => {
return navigator.userAgent.toLowerCase().indexOf('crios') !== -1
}
}

Expand Down

0 comments on commit 7fbe2d3

Please sign in to comment.