1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +00:00

lint fixes

This commit is contained in:
Kyle Spearrin
2017-11-01 13:40:38 -04:00
parent 51f2c9a30c
commit 9ffbd0bb69
5 changed files with 12 additions and 57 deletions

View File

@@ -23,7 +23,8 @@ export default class UtilsService {
if (navigator.userAgent.indexOf('Firefox') !== -1 || navigator.userAgent.indexOf('Gecko/') !== -1) {
this.browserCache = Browser.Firefox;
} else if ((!!(window as any).opr && !!(window as any).opr.addons) || !!(window as any).opera || navigator.userAgent.indexOf(' OPR/') >= 0) {
} else if ((!!(window as any).opr && !!(window as any).opr.addons) || !!(window as any).opera ||
navigator.userAgent.indexOf(' OPR/') >= 0) {
this.browserCache = Browser.Opera;
} else if (navigator.userAgent.indexOf(' Edge/') !== -1) {
this.browserCache = Browser.Edge;
@@ -74,7 +75,8 @@ export default class UtilsService {
return;
}
const text = $(this).find('input, textarea').not('input[type="checkbox"], input[type="radio"], input[type="hidden"]');
const text = $(this).find('input, textarea')
.not('input[type="checkbox"], input[type="radio"], input[type="hidden"]');
const checkbox = $(this).find('input[type="checkbox"]');
const select = $(this).find('select');