diff --git a/packages/frontend/public/robots.txt b/packages/frontend/public/robots.txt deleted file mode 100644 index 1f53798bb..000000000 --- a/packages/frontend/public/robots.txt +++ /dev/null @@ -1,2 +0,0 @@ -User-agent: * -Disallow: / diff --git a/packages/frontend/src/index.html b/packages/frontend/src/index.html index 5ef69eb4a..2d73ded1c 100644 --- a/packages/frontend/src/index.html +++ b/packages/frontend/src/index.html @@ -2,6 +2,7 @@
+ diff --git a/packages/frontend/src/index.tsx b/packages/frontend/src/index.tsx index fc2530378..99b0e9470 100644 --- a/packages/frontend/src/index.tsx +++ b/packages/frontend/src/index.tsx @@ -3,12 +3,10 @@ import { BrowserRouter } from "react-router-dom"; import App from "./App"; -if (/iPad|iPhone|iPod/.test(navigator.platform)) { - const viewportMeta = document.createElement("meta"); - viewportMeta.name = "viewport"; - viewportMeta.content = "width=device-width, initial-scale=1, maximum-scale=1, shrink-to-fit=no"; - document.head.appendChild(viewportMeta); -} +if (/iPad|iPhone|iPod/.test(navigator.platform)) + document + .querySelector('meta[name="viewport"]') + ?.setAttribute("content", "width=device-width, initial-scale=1, maximum-scale=1, shrink-to-fit=no"); createRoot(document.getElementById("root")).render(