Skip to content

Commit e5d41f3

Browse files
committed
Merge branch 'master' of https://github.com/crabbly/Print.js
2 parents 62c065a + 7fbe2d3 commit e5d41f3

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/js/browser.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ const Browser = {
1919
isSafari: () => {
2020
return Object.prototype.toString.call(window.HTMLElement).indexOf('Constructor') > 0 ||
2121
navigator.userAgent.toLowerCase().indexOf('safari') !== -1
22+
},
23+
// IOS Chrome
24+
isIOSChrome: () => {
25+
return navigator.userAgent.toLowerCase().indexOf('crios') !== -1
2226
}
2327
}
2428

0 commit comments

Comments
 (0)