Vishnu Mohandas преди 4 години
родител
ревизия
f04a0a4505
променени са 1 файла, в които са добавени 16 реда и са изтрити 16 реда
  1. 16 16
      lib/models/file.dart

+ 16 - 16
lib/models/file.dart

@@ -99,14 +99,14 @@ class File {
   }
 
   String getDownloadUrl() {
-    if (kDebugMode) {
-      return Configuration.instance.getHttpEndpoint() +
-          "/files/download/" +
-          uploadedFileID.toString();
-    } else {
-      return "https://files.ente.workers.dev/?fileID=" +
-          uploadedFileID.toString();
-    }
+    // if (kDebugMode) {
+    return Configuration.instance.getHttpEndpoint() +
+        "/files/download/" +
+        uploadedFileID.toString();
+    // } else {
+    //   return "https://files.ente.workers.dev/?fileID=" +
+    //       uploadedFileID.toString();
+    // }
   }
 
   // Passing token within the URL due to https://github.com/flutter/flutter/issues/16466
@@ -120,14 +120,14 @@ class File {
   }
 
   String getThumbnailUrl() {
-    if (kDebugMode) {
-      return Configuration.instance.getHttpEndpoint() +
-          "/files/preview/" +
-          uploadedFileID.toString();
-    } else {
-      return "https://thumbnails.ente.workers.dev/?fileID=" +
-          uploadedFileID.toString();
-    }
+    // if (!kDebugMode) {
+    return Configuration.instance.getHttpEndpoint() +
+        "/files/preview/" +
+        uploadedFileID.toString();
+    // } else {
+    //   return "https://thumbnails.ente.workers.dev/?fileID=" +
+    //       uploadedFileID.toString();
+    // }
   }
 
   @override