浏览代码

removed console logs

Abhinav-grd 4 年之前
父节点
当前提交
6b8fc327e1
共有 3 个文件被更改,包括 0 次插入5 次删除
  1. 0 3
      src/components/PhotoSwipe/PhotoSwipe.tsx
  2. 0 1
      src/services/uploadService.ts
  3. 0 1
      src/utils/common/apiUtil.ts

+ 0 - 3
src/components/PhotoSwipe/PhotoSwipe.tsx

@@ -51,7 +51,6 @@ function PhotoSwipe(props: Iprops) {
     }, [isOpen]);
 
     function updateFavButton() {
-        console.log(this.currItem.id, props.favItemIds)
         setIsFav(isInFav(this?.currItem));
     }
 
@@ -113,14 +112,12 @@ function PhotoSwipe(props: Iprops) {
         if (!isInFav(file)) {
             favItemIds.add(file.id);
             await addToFavorites(file);
-            console.log("added to Favorites");
             setIsFav(true);
             setFavItemIds(favItemIds);
         }
         else {
             favItemIds.delete(file.id);
             await removeFromFavorites(file)
-            console.log("removed from Favorites");
             setIsFav(false);
             setFavItemIds(favItemIds);
 

+ 0 - 1
src/services/uploadService.ts

@@ -364,7 +364,6 @@ class UploadService {
                     resolve(blob);
                 }), 'image/jpeg', 0.4
             });
-            console.log(URL.createObjectURL(thumbnailBlob));
             const thumbnail = this.getUint8ArrayView(thumbnailBlob);
             return thumbnail;
         } catch (e) {

+ 0 - 1
src/utils/common/apiUtil.ts

@@ -1,5 +1,4 @@
 export const getEndpoint = () => {
     const endPoint = process.env.NEXT_PUBLIC_ENTE_ENDPOINT ?? "https://api.ente.io";
-    console.log(endPoint);
     return endPoint;
 }