[skip ci] Update Monaco; Fix code scanning errors

This commit is contained in:
Vendicated 2023-04-29 04:16:28 +02:00
parent a2e03084b0
commit bf795c49df
No known key found for this signature in database
GPG key ID: A1DC0CFB5615D905
4 changed files with 63 additions and 47 deletions

View file

@ -16,7 +16,7 @@ chrome.webRequest.onHeadersReceived.addListener(
// In main frame requests, the CSP needs to be removed to enable fetching of custom css
// as desired by the user
removeFirst(responseHeaders, h => h.name.toLowerCase() === "content-security-policy");
} else if (type === "stylesheet" && url.startsWith("https://raw.githubusercontent.com")) {
} else if (type === "stylesheet" && url.startsWith("https://raw.githubusercontent.com/")) {
// Most users will load css from GitHub, but GitHub doesn't set the correct content type,
// so we fix it here
removeFirst(responseHeaders, h => h.name.toLowerCase() === "content-type");