Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Inline

Manav Rathie4c18b9e7401
diff --git a/web/apps/payments/src/constants/common.ts b/web/apps/payments/src/constants/common.ts
deleted file mode 100644
index 8c36f7a4e3..0000000000
--- a/web/apps/payments/src/constants/common.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-export const DESKTOP_REDIRECT_URL = "ente://app/gallery";
-export const ENTE_WEBSITE_URL = "https://ente.io";
diff --git a/web/apps/payments/src/pages/desktop-redirect.tsx b/web/apps/payments/src/pages/desktop-redirect.tsx
index 61f3502235..b945ee20a2 100644
--- a/web/apps/payments/src/pages/desktop-redirect.tsx
+++ b/web/apps/payments/src/pages/desktop-redirect.tsx
@@ -1,12 +1,11 @@
import { Container } from "components/Container";
import EnteSpinner from "components/EnteSpinner";
-import { DESKTOP_REDIRECT_URL } from "constants/common";
import * as React from "react";
export default function DesktopRedirect() {
React.useEffect(() => {
const currentURL = new URL(window.location.href);
- const desktopRedirectURL = new URL(DESKTOP_REDIRECT_URL);
+ const desktopRedirectURL = new URL("ente://app/gallery");
desktopRedirectURL.search = currentURL.search;
window.location.href = desktopRedirectURL.href;
}, []);
diff --git a/web/apps/payments/src/pages/index.tsx b/web/apps/payments/src/pages/index.tsx
index bc963d1595..b4aad2a0e2 100644
--- a/web/apps/payments/src/pages/index.tsx
+++ b/web/apps/payments/src/pages/index.tsx
@@ -1,6 +1,5 @@
import { Container } from "components/Container";
import EnteSpinner from "components/EnteSpinner";
-import { ENTE_WEBSITE_URL } from "constants/common";
import * as React from "react";
import { parseAndHandleRequest } from "services/billingService";
import { CUSTOM_ERROR } from "utils/error";
@@ -19,7 +18,7 @@ export default function Home() {
e instanceof Error &&
e.message === CUSTOM_ERROR.DIRECT_OPEN_WITH_NO_QUERY_PARAMS
) {
- window.location.href = ENTE_WEBSITE_URL;
+ window.location.href = "https://ente.io";
} else {
setErrorMessageView(true);
}