Sha256: 8fc99f47f429e7aa6af136e6b8b212ed6891e8fe10aafb0f4204f6fae2834b0d
Contents?: true
Size: 1.02 KB
Versions: 8
Compression:
Stored size: 1.02 KB
Contents
(function () { // the order is important var bridgeMapping = [ [/RhoSimulator/ , "rhosimulator" ], [/Android/ , "android" ], [/iPhone|iPod|iPad/ , "ios" ], [/Windows\s+Phone/ , "wp8" ], [/Windows\s+(?:Mobile|CE)|WM [0-9]/, "wm" ], [/Windows/ , "win32" ] ]; // autodetect a bridge type var detectedPlatformBridge = ""; // Fix for bug in str.toLowerCase() method of String class in QTWebView component executing on Windows. for (var i = 0; i < bridgeMapping.length; ++i) { if (bridgeMapping[i][0].test(navigator.userAgent)) { detectedPlatformBridge = bridgeMapping[i][1]; break; } } if((detectedPlatformBridge=="rhosimulator")||(detectedPlatformBridge=="win32")) { String.prototype.toLowerCase = function (str) { return __rhoNativeApi.toLowerCase(this); } } })();
Version data entries
8 entries across 8 versions & 1 rubygems