mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 01:10:08 +02:00
Enable the ESLint object-shorthand
rule in the extensions/chromium/
-folder
Based on the following compatibility information, there can't be any compelling reason to not enable this ESLint rule now: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Object_initializer#browser_compatibility See also https://eslint.org/docs/rules/object-shorthand
This commit is contained in:
parent
83e1064360
commit
66c8a0897a
6 changed files with 9 additions and 10 deletions
|
@ -123,7 +123,7 @@ chrome.runtime.onConnect.addListener(function onReceivePort(port) {
|
|||
{
|
||||
urls: [data.requestUrl],
|
||||
types: ["xmlhttprequest"],
|
||||
tabId: tabId,
|
||||
tabId,
|
||||
},
|
||||
["blocking", ...extraInfoSpecWithHeaders]
|
||||
);
|
||||
|
@ -148,7 +148,7 @@ chrome.runtime.onConnect.addListener(function onReceivePort(port) {
|
|||
{
|
||||
urls: ["https://*/*"],
|
||||
types: ["xmlhttprequest"],
|
||||
tabId: tabId,
|
||||
tabId,
|
||||
},
|
||||
["blocking", "responseHeaders"]
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue