summaryrefslogtreecommitdiff
path: root/ext/bg/js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-09-15 21:03:58 -0700
committerAlex Yatskov <alex@foosoft.net>2016-09-15 21:03:58 -0700
commitb969e8952c551fdc7c150dcc111eccdc90ac7408 (patch)
tree2fa21a903155412870c1807f5cc2ee8cab07f47f /ext/bg/js
parentb87611cfddf5ca0e1529b88ed1610ebe0d4657e6 (diff)
Cleanup
Diffstat (limited to 'ext/bg/js')
-rw-r--r--ext/bg/js/translator.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/bg/js/translator.js b/ext/bg/js/translator.js
index 2331bde7..e534e0cb 100644
--- a/ext/bg/js/translator.js
+++ b/ext/bg/js/translator.js
@@ -54,10 +54,10 @@ class Translator {
percent += banks[url].loaded / banks[url].total;
}
- percent /= 3;
+ percent /= 3.0;
if (callback) {
- callback({state: 'update', progress: Math.ceil(100 * percent)});
+ callback({state: 'update', progress: Math.ceil(100.0 * percent)});
}
};
@@ -69,7 +69,7 @@ class Translator {
return this.dictionary.sealDb();
}).then(() => {
if (callback) {
- callback({state: 'end', progress: 100});
+ callback({state: 'end', progress: 100.0});
}
});
}).then(() => {