Explorar el Código

:fire: serverLink

visuddhinanda hace 2 años
padre
commit
3cbd5b2453
Se han modificado 1 ficheros con 0 adiciones y 5 borrados
  1. 0 5
      dashboard/src/pages/library/download/Download.tsx

+ 0 - 5
dashboard/src/pages/library/download/Download.tsx

@@ -9,11 +9,6 @@ import { get } from "../../../request";
 
 const { Paragraph } = Typography;
 
-function serverLink(url: string): string {
-  return process.env.REACT_APP_API_HOST
-    ? process.env.REACT_APP_API_HOST + url
-    : window.location.origin + url;
-}
 interface IOfflineIndex {
   filename: string;
   url: string;