From f3c5815848d3e46890fc9c18dd2dba6ba2609ddf Mon Sep 17 00:00:00 2001 From: gorhill Date: Wed, 13 May 2015 14:53:29 -0400 Subject: [PATCH] interim version number for dev build --- platform/chromium/manifest.json | 2 +- src/js/pagestats.js | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/platform/chromium/manifest.json b/platform/chromium/manifest.json index d68462d..e33e30d 100644 --- a/platform/chromium/manifest.json +++ b/platform/chromium/manifest.json @@ -2,7 +2,7 @@ "manifest_version": 2, "name": "uMatrix", "short_name": "uMatrix", - "version": "0.9.0.1", + "version": "0.9.0.2", "description": "__MSG_extShortDesc__", "icons": { "16": "img/icon_16.png", diff --git a/src/js/pagestats.js b/src/js/pagestats.js index 779128d..75b065c 100644 --- a/src/js/pagestats.js +++ b/src/js/pagestats.js @@ -32,6 +32,8 @@ To record distinct net requests µMatrix.PageRequestStats = (function() { +'use strict'; + /******************************************************************************/ // Caching useful global vars @@ -222,8 +224,8 @@ var makeRequestKey = function(uri, reqType) { var hint = 0x811c9dc5; var i = uri.length; while ( i-- ) { - hint ^= uri.charCodeAt(i); - hint += (hint<<1) + (hint<<4) + (hint<<7) + (hint<<8) + (hint<<24); + hint ^= uri.charCodeAt(i) | 0; + hint += (hint<<1) + (hint<<4) + (hint<<7) + (hint<<8) + (hint<<24) | 0; hint >>>= 0; } var key = typeToCode[reqType] || 'z';