mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-14 23:10:02 -04:00
use Array.isArray instead of instanceof
This commit is contained in:
parent
c4f31be3ae
commit
f9ad33069e
1 changed files with 1 additions and 1 deletions
|
@ -117,7 +117,7 @@ self.ScramjetServiceWorker = class ScramjetServiceWorker {
|
|||
|
||||
for (const header in responseHeaders) {
|
||||
// flatten everything past here
|
||||
if (responseHeaders[header] instanceof Array)
|
||||
if (Array.isArray(responseHeaders[header]))
|
||||
responseHeaders[header] = responseHeaders[header][0];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue