Code style fixes
This commit is contained in:
Родитель
dbfc0d7245
Коммит
7f608b6002
|
@ -348,7 +348,7 @@
|
|||
color: defaultColor,
|
||||
tabId: tab.id
|
||||
});
|
||||
var plural = (credentialAmount == 1) ? 'credential' : 'credentials';
|
||||
var plural = (credentialAmount === 1) ? 'credential' : 'credentials';
|
||||
API.browserAction.setTitle({
|
||||
title: 'Passman - ' + credentialAmount.toString() + ' '+ plural +' found for this page',
|
||||
tabId: tab.id
|
||||
|
@ -383,7 +383,7 @@
|
|||
var tab = tabs[t];
|
||||
createIconForTab(tab);
|
||||
}
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -138,7 +138,7 @@ window.PAPI = (function () {
|
|||
var request = new Request(_API.host + '/index.php/apps/passman' + endpoint, opts);
|
||||
|
||||
fetch(request).then(function(response){
|
||||
if(response.status != 200){
|
||||
if(response.status !== 200){
|
||||
callback({error: true, result: {statusText: response.statusText, status: response.status}});
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -7,12 +7,12 @@ jQuery.fn.serializeObject = function()
|
|||
if (!o[this.name].push) {
|
||||
o[this.name] = [o[this.name]];
|
||||
}
|
||||
var value = (this.value == 'on') ? true : this.value;
|
||||
var value = (this.value === 'on') ? true : this.value;
|
||||
value = (value === 'off') ? false : value;
|
||||
o[this.name].push(value || '');
|
||||
} else {
|
||||
var value = (this.value == 'on') ? true : this.value;
|
||||
value = (value == 'off') ? false : value;
|
||||
var value = (this.value === 'on') ? true : this.value;
|
||||
value = (value === 'off') ? false : value;
|
||||
o[this.name] = value;
|
||||
}
|
||||
});
|
||||
|
|
Загрузка…
Ссылка в новой задаче