summaryrefslogtreecommitdiff
path: root/ext/bg/js/util.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/bg/js/util.js')
-rw-r--r--ext/bg/js/util.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/bg/js/util.js b/ext/bg/js/util.js
index 88d96688..91b16e79 100644
--- a/ext/bg/js/util.js
+++ b/ext/bg/js/util.js
@@ -59,7 +59,7 @@ function utilStringHashCode(string) {
return hashCode;
}
- for (let i = 0, charCode = string.charCodeAt(i); i < string.length; i++) {
+ for (let i = 0, charCode = string.charCodeAt(i); i < string.length; charCode = string.charCodeAt(++i)) {
hashCode = ((hashCode << 5) - hashCode) + charCode;
hashCode |= 0;
}