mirror of https://github.com/vector-im/riot-web
Appease linter
parent
3947d903f9
commit
7d9e7d6c74
|
@ -91,7 +91,9 @@ self.addEventListener("fetch", (event: FetchEvent) => {
|
||||||
// Add authentication and send the request. We add authentication even if MSC3916 endpoints aren't
|
// Add authentication and send the request. We add authentication even if MSC3916 endpoints aren't
|
||||||
// being used to ensure patches like this work:
|
// being used to ensure patches like this work:
|
||||||
// https://github.com/matrix-org/synapse/commit/2390b66bf0ec3ff5ffb0c7333f3c9b239eeb92bb
|
// https://github.com/matrix-org/synapse/commit/2390b66bf0ec3ff5ffb0c7333f3c9b239eeb92bb
|
||||||
const config = !accessToken ? undefined : {
|
const config = !accessToken
|
||||||
|
? undefined
|
||||||
|
: {
|
||||||
headers: {
|
headers: {
|
||||||
Authorization: `Bearer ${accessToken}`,
|
Authorization: `Bearer ${accessToken}`,
|
||||||
},
|
},
|
||||||
|
@ -107,7 +109,9 @@ async function tryUpdateServerSupportMap(clientApiUrl: string, accessToken?: str
|
||||||
return; // up to date
|
return; // up to date
|
||||||
}
|
}
|
||||||
|
|
||||||
const config = !accessToken ? undefined : {
|
const config = !accessToken
|
||||||
|
? undefined
|
||||||
|
: {
|
||||||
headers: {
|
headers: {
|
||||||
Authorization: `Bearer ${accessToken}`,
|
Authorization: `Bearer ${accessToken}`,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue