Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Michał "rysiek" Woźniak
samizdat
Commits
c1799c50
Commit
c1799c50
authored
Oct 05, 2020
by
Michał "rysiek" Woźniak
🔒
Browse files
WIP
#71
: alt-fetch uses self.log()
parent
226eb06b
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/alt-fetch.js
View file @
c1799c50
...
...
@@ -87,7 +87,7 @@
}
// debug log
console
.
log
(
`Samizdat:
fetching from alternative endpoints:\n
${
useEndpoints
.
join
(
'
\n
'
)}
`
)
self
.
log
(
config
.
name
,
`
fetching from alternative endpoints:\n
${
useEndpoints
.
join
(
'
\n
'
)}
`
)
return
Promise
.
any
(
useEndpoints
.
map
(
...
...
@@ -100,7 +100,7 @@
throw
new
Error
(
'
HTTP Error:
'
+
response
.
status
+
'
'
+
response
.
statusText
);
}
// all good, it seems
console
.
log
(
"
(COMMIT_UNKNOWN) F
etched:
"
,
response
.
url
);
self
.
log
(
config
.
name
,
"
f
etched:
"
,
response
.
url
);
// we need to create a new Response object
// with all the headers added explicitly,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment