remove unnecessary logging

This commit is contained in:
SethBurkart123
2024-04-07 15:21:17 +10:00
parent 1292c06294
commit d861e8f85b
3 changed files with 0 additions and 5 deletions
-1
View File
@@ -77,7 +77,6 @@ export const sendThemeUpdate = (updatedTheme: CustomTheme, saveTheme?: boolean,
const imageDataPromises = updatedTheme.CustomImages.map(async (image) => {
if (saveTheme || updateImages) {
console.log('Saving image:', image);
const base64 = await blobToBase64(image.blob);
return {
id: image.id,
-2
View File
@@ -92,8 +92,6 @@ function ThemeCreator() {
const urlParams = new URLSearchParams(window.location.search);
const themeID = urlParams.get('themeID');
console.log('ThemeID:', themeID);
if (themeID) {
getTheme(themeID);
}
@@ -7,12 +7,10 @@ import { blobToBase64 } from '../../utils/blobToBase64';
export const getAvailableThemes = async (): Promise<ThemeList | {}> => {
try {
const themeIds = await localforage.getItem('customThemes') as string[] | null;
console.log('Available themes:', themeIds);
if (themeIds) {
const themes = await Promise.all(
themeIds.map(async (id) => {
const theme = await localforage.getItem(id) as CustomTheme;
console.log('CoverImage: ', theme.coverImage)
const { CustomImages, ...themeWithoutImages } = theme;
return {
...themeWithoutImages,