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; }