1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 08:43: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

@@ -11,13 +11,13 @@ function initUtilsService() {
return this.browserCache;
}
if (navigator.userAgent.indexOf("Firefox") !== -1 || navigator.userAgent.indexOf("Gecko/") !== -1) {
if (navigator.userAgent.indexOf('Firefox') !== -1 || navigator.userAgent.indexOf('Gecko/') !== -1) {
this.browserCache = 'firefox';
}
else if ((!!window.opr && !!opr.addons) || !!window.opera || navigator.userAgent.indexOf(' OPR/') >= 0) {
this.browserCache = 'opera';
}
else if (navigator.userAgent.indexOf(" Edge/") !== -1) {
else if (navigator.userAgent.indexOf(' Edge/') !== -1) {
this.browserCache = 'edge';
}
else if (window.chrome) {