mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 03:34:40 +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) => {
|
const imageDataPromises = updatedTheme.CustomImages.map(async (image) => {
|
||||||
if (saveTheme || updateImages) {
|
if (saveTheme || updateImages) {
|
||||||
console.log('Saving image:', image);
|
|
||||||
const base64 = await blobToBase64(image.blob);
|
const base64 = await blobToBase64(image.blob);
|
||||||
return {
|
return {
|
||||||
id: image.id,
|
id: image.id,
|
||||||
|
|||||||
@@ -92,8 +92,6 @@ function ThemeCreator() {
|
|||||||
const urlParams = new URLSearchParams(window.location.search);
|
const urlParams = new URLSearchParams(window.location.search);
|
||||||
const themeID = urlParams.get('themeID');
|
const themeID = urlParams.get('themeID');
|
||||||
|
|
||||||
console.log('ThemeID:', themeID);
|
|
||||||
|
|
||||||
if (themeID) {
|
if (themeID) {
|
||||||
getTheme(themeID);
|
getTheme(themeID);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,12 +7,10 @@ import { blobToBase64 } from '../../utils/blobToBase64';
|
|||||||
export const getAvailableThemes = async (): Promise<ThemeList | {}> => {
|
export const getAvailableThemes = async (): Promise<ThemeList | {}> => {
|
||||||
try {
|
try {
|
||||||
const themeIds = await localforage.getItem('customThemes') as string[] | null;
|
const themeIds = await localforage.getItem('customThemes') as string[] | null;
|
||||||
console.log('Available themes:', themeIds);
|
|
||||||
if (themeIds) {
|
if (themeIds) {
|
||||||
const themes = await Promise.all(
|
const themes = await Promise.all(
|
||||||
themeIds.map(async (id) => {
|
themeIds.map(async (id) => {
|
||||||
const theme = await localforage.getItem(id) as CustomTheme;
|
const theme = await localforage.getItem(id) as CustomTheme;
|
||||||
console.log('CoverImage: ', theme.coverImage)
|
|
||||||
const { CustomImages, ...themeWithoutImages } = theme;
|
const { CustomImages, ...themeWithoutImages } = theme;
|
||||||
return {
|
return {
|
||||||
...themeWithoutImages,
|
...themeWithoutImages,
|
||||||
|
|||||||
Reference in New Issue
Block a user