Fix errors reported by the comma-spacing ESLint rule

http://eslint.org/docs/rules/comma-spacing
This commit is contained in:
Jonas Jenwald 2016-12-10 19:58:36 +01:00
parent 66d2637b3f
commit ad915f8af1
9 changed files with 36 additions and 36 deletions

View file

@ -72,7 +72,7 @@ function getHeaderFromHeaders(headers, headerName) {
function isPdfFile(details) {
var header = getHeaderFromHeaders(details.responseHeaders, 'content-type');
if (header) {
var headerValue = header.value.toLowerCase().split(';',1)[0].trim();
var headerValue = header.value.toLowerCase().split(';', 1)[0].trim();
if (headerValue === 'application/pdf') {
return true;
}
@ -153,7 +153,7 @@ chrome.webRequest.onHeadersReceived.addListener(
],
types: ['main_frame', 'sub_frame']
},
['blocking','responseHeaders']);
['blocking', 'responseHeaders']);
chrome.webRequest.onBeforeRequest.addListener(
function onBeforeRequestForFTP(details) {