diff options
author | Vendicated <vendicated@riseup.net> | 2023-04-29 04:16:28 +0200 |
---|---|---|
committer | Vendicated <vendicated@riseup.net> | 2023-04-29 04:16:28 +0200 |
commit | bf795c49dfe988f3013cda35cfe18e124456f23f (patch) | |
tree | 9831e84cd64d69f2e65a84c49ff508fc7089e180 /browser | |
parent | a2e03084b001a154bf1b33b213480028bb2d4e59 (diff) | |
download | Vencord-bf795c49dfe988f3013cda35cfe18e124456f23f.tar.gz Vencord-bf795c49dfe988f3013cda35cfe18e124456f23f.tar.bz2 Vencord-bf795c49dfe988f3013cda35cfe18e124456f23f.zip |
[skip ci] Update Monaco; Fix code scanning errors
Diffstat (limited to 'browser')
-rw-r--r-- | browser/background.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/browser/background.js b/browser/background.js index 7fc4a82..1f2d5ec 100644 --- a/browser/background.js +++ b/browser/background.js @@ -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"); |