aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js
diff options
context:
space:
mode:
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(() => {