mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 01:10:08 +02:00
Remove variable shadowing from the JavaScript files in the src/display/
folder
*This is part of a series of patches that will try to split PR 11566 into smaller chunks, to make reviewing more feasible.* Once all the code has been fixed, we'll be able to eventually enable the ESLint no-shadow rule; see https://eslint.org/docs/rules/no-shadow
This commit is contained in:
parent
3cebb430c2
commit
3539a17d2a
6 changed files with 44 additions and 44 deletions
|
@ -292,13 +292,13 @@ class BaseRangeReader {
|
|||
}
|
||||
}
|
||||
|
||||
function createRequestOptions(url, headers) {
|
||||
function createRequestOptions(parsedUrl, headers) {
|
||||
return {
|
||||
protocol: url.protocol,
|
||||
auth: url.auth,
|
||||
host: url.hostname,
|
||||
port: url.port,
|
||||
path: url.path,
|
||||
protocol: parsedUrl.protocol,
|
||||
auth: parsedUrl.auth,
|
||||
host: parsedUrl.hostname,
|
||||
port: parsedUrl.port,
|
||||
path: parsedUrl.path,
|
||||
method: "GET",
|
||||
headers,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue