1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-14 15:23:33 +00:00

applied i18n to background context menus

This commit is contained in:
Kyle Spearrin
2016-10-18 19:03:40 -04:00
parent bfe2edcdea
commit 03e614e58b
5 changed files with 17 additions and 7 deletions

View File

@@ -107,7 +107,7 @@ function initPasswordGenerationService() {
var bits_needed = Math.ceil(Math.log2(range));
if (bits_needed > 53) {
throw new Exception("We cannot generate numbers larger than 53 bits.");
throw new Exception('We cannot generate numbers larger than 53 bits.');
}
var bytes_needed = Math.ceil(bits_needed / 8);
var mask = Math.pow(2, bits_needed) - 1;