hiento09 86f0ffc7d1
Chore/disable submodule (#56)
* Chore disable git submodule for web-client and app-backend

* Chore add newest source code of app-backend and web-client

---------

Co-authored-by: Hien To <tominhhien97@gmail.com>
2023-09-05 16:29:07 +07:00

20 lines
559 B
TypeScript

"use client";
import { useEffect } from "react";
import { redirect } from "next/navigation";
const Page = () => {
useEffect(() => {
var userAgent = navigator.userAgent || navigator.vendor;
// iOS detection from: http://stackoverflow.com/a/9039885/177710
if (/iPad|iPhone|iPod/.test(userAgent)) {
window.open(process.env.NEXT_PUBLIC_DOWNLOAD_APP_IOS, "_blank_");
} else {
window.open(process.env.NEXT_PUBLIC_DOWNLOAD_APP_ANDROID, "_blank_");
}
redirect("/", undefined);
}, []);
return <></>;
};
export default Page;