MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / _isSafari

Function _isSafari

Ports/JavaScriptPort/src/main/webapp/js/fontmetrics.js:44–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42 // This may also be useful on Android but haven't tested yet.
43 var isSafari = _isSafari();
44 function _isSafari() {
45 var ua = navigator.userAgent.toLowerCase();
46 if (ua.indexOf('safari') != -1) {
47 if (ua.indexOf('chrome') > -1) {
48 //return false;
49 } else {
50 return true;
51 }
52 }
53 return false;
54 }
55
56 function isIOS() {
57

Callers 1

fontmetrics.jsFile · 0.85

Calls 2

toLowerCaseMethod · 0.65
indexOfMethod · 0.65

Tested by

no test coverage detected