From bf795c49dfe988f3013cda35cfe18e124456f23f Mon Sep 17 00:00:00 2001 From: Vendicated Date: Sat, 29 Apr 2023 04:16:28 +0200 Subject: [PATCH] [skip ci] Update Monaco; Fix code scanning errors --- browser/background.js | 2 +- src/components/monacoWin.html | 104 +++++++++++++++++------------- src/plugins/messageLinkEmbeds.tsx | 2 +- src/utils/types.ts | 2 + 4 files changed, 63 insertions(+), 47 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"); diff --git a/src/components/monacoWin.html b/src/components/monacoWin.html index d9d2412..57d3214 100644 --- a/src/components/monacoWin.html +++ b/src/components/monacoWin.html @@ -1,52 +1,66 @@ - + + + + Vencord QuickCSS Editor + + + - - - Vencord QuickCSS Editor - - - + +
+ - -
- + - - + + diff --git a/src/plugins/messageLinkEmbeds.tsx b/src/plugins/messageLinkEmbeds.tsx index e3a28a7..951835a 100644 --- a/src/plugins/messageLinkEmbeds.tsx +++ b/src/plugins/messageLinkEmbeds.tsx @@ -51,7 +51,7 @@ const SearchResultClasses = findByPropsLazy("message", "searchResult"); let AutoModEmbed: React.ComponentType = () => null; const messageLinkRegex = /(? void; }; + + tags?: string[]; } export enum OptionType {