mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 09:20:06 +02:00
Fix errors reported by the comma-spacing
ESLint rule
http://eslint.org/docs/rules/comma-spacing
This commit is contained in:
parent
66d2637b3f
commit
ad915f8af1
9 changed files with 36 additions and 36 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue