mirror of
https://github.com/Equicord/Equicord.git
synced 2025-05-11 18:05:37 +02:00
[skip ci] Update Monaco; Fix code scanning errors
This commit is contained in:
parent
a2e03084b0
commit
bf795c49df
4 changed files with 63 additions and 47 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue