mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-05 19:24:39 +00:00
remove unnecessary logging
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user