MCPcopy Create free account
hub / github.com/Useful-Scripts-Extension/useful-script / _getAndroid

Function _getAndroid

scripts/libs/qrcode/index.js:159–172  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

157
158 // android 2.x doesn't support Data-URI spec
159 function _getAndroid() {
160 var android = false;
161 var sAgent = navigator.userAgent;
162
163 if (/android/i.test(sAgent)) { // android
164 android = true;
165 var aMat = sAgent.toString().match(/android ([0-9]+\.?[0-9]?)/i);
166
167 if (aMat && aMat[1]) {
168 android = parseFloat(aMat[1]);
169 }
170 }
171 return android;
172 }
173
174 var svgDrawer = (function() {
175

Callers 2

DrawingFunction · 0.85
index.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected