MCPcopy
hub / github.com/davidshimjs/qrcodejs / _getAndroid

Function _getAndroid

qrcode.js:159–173  ·  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
172 return android;
173 }
174
175 var svgDrawer = (function() {
176

Callers 2

DrawingFunction · 0.85
qrcode.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected