Inline
This commit is contained in:
parent
478435f806
commit
e4c18b9e74
3 changed files with 2 additions and 6 deletions
|
@ -1,2 +0,0 @@
|
|||
export const DESKTOP_REDIRECT_URL = "ente://app/gallery";
|
||||
export const ENTE_WEBSITE_URL = "https://ente.io";
|
|
@ -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;
|
||||
}, []);
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue