From e13edc5be77f0fc631dfa70e40910e0e0f48e47b Mon Sep 17 00:00:00 2001 From: SethBurkart123 Date: Thu, 21 Dec 2023 13:24:33 +1100 Subject: [PATCH] remove unnecessary console logs --- src/interface/hooks/ThemeManagment.tsx | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/interface/hooks/ThemeManagment.tsx b/src/interface/hooks/ThemeManagment.tsx index 51c8bf5f..c3d43c02 100644 --- a/src/interface/hooks/ThemeManagment.tsx +++ b/src/interface/hooks/ThemeManagment.tsx @@ -6,7 +6,7 @@ interface ThemeList { export const downloadTheme = async (themeName: string, themeURL: string) => { // send message to the background script - const response = await browser.runtime.sendMessage({ + await browser.runtime.sendMessage({ type: 'currentTab', info: 'DownloadTheme', body: { @@ -14,13 +14,11 @@ export const downloadTheme = async (themeName: string, themeURL: string) => { themeURL: themeURL } }); - - console.log("Response: ", response); } export const setTheme = async (themeName: string, themeURL: string) => { // send message to the background script - const response = await browser.runtime.sendMessage({ + await browser.runtime.sendMessage({ type: 'currentTab', info: 'SetTheme', body: { @@ -28,8 +26,6 @@ export const setTheme = async (themeName: string, themeURL: string) => { themeURL: themeURL } }); - - console.log("Response: ", response); } export const listThemes = async () => { @@ -39,9 +35,6 @@ export const listThemes = async () => { info: 'ListThemes' }); - // response.themes is an array of strings that are identical to the theme names that we loop over. Use this list to see which ones are downloaded and which ones need to see the download icon. - console.log("Response: ", response); - return response; }