From 4c7b6a0e308126569e6b9d7999808675688e74e5 Mon Sep 17 00:00:00 2001 From: James Date: Fri, 28 Sep 2012 15:45:28 -0300 Subject: [PATCH] Chrome v23+ should open_latest() not open_v21() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changed the `open` IF statement to A) check for `<` instead of `<=` v23.   And B) use Math.floor() instead of parseInt(): [jsperf](http://jsperf.com/math-floor-vs-math-round-vs-parseint/55) --- chrome/js/requester.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/js/requester.js b/chrome/js/requester.js index 9b7c5e5e..4fa24a6f 100755 --- a/chrome/js/requester.js +++ b/chrome/js/requester.js @@ -3248,7 +3248,7 @@ pm.indexedDB = { }, open:function () { - if (parseInt(navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./)[2]) <= 23) { + if (Math.floor(navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./)[2]) < 23) { pm.indexedDB.open_v21(); } else {