Skip to content

armgit / ente

Public Imported from GitHub
0

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

Remove the unnecessary console warning

Manav Rathie3826695c5bb
diff --git a/web/apps/auth/src/pages/_app.tsx b/web/apps/auth/src/pages/_app.tsx
index 156f2e4554..c06531ab42 100644
--- a/web/apps/auth/src/pages/_app.tsx
+++ b/web/apps/auth/src/pages/_app.tsx
@@ -93,16 +93,6 @@ export default function App(props: EnteAppProps) {
const setUserOnline = () => setOffline(false);
const setUserOffline = () => setOffline(true);
- useEffect(() => {
- if (isI18nReady) {
- console.log(
- `%c${t("CONSOLE_WARNING_STOP")}`,
- "color: red; font-size: 52px;",
- );
- console.log(`%c${t("CONSOLE_WARNING_DESC")}`, "font-size: 20px;");
- }
- }, [isI18nReady]);
-
useEffect(() => {
router.events.on("routeChangeStart", (url: string) => {
const newPathname = url.split("?")[0] as PAGES;
diff --git a/web/apps/photos/public/locales/en-US/translation.json b/web/apps/photos/public/locales/en-US/translation.json
index 6870df3194..510471eaab 100644
--- a/web/apps/photos/public/locales/en-US/translation.json
+++ b/web/apps/photos/public/locales/en-US/translation.json
@@ -41,8 +41,6 @@
"REFERRAL_CODE_HINT": "How did you hear about Ente? (optional)",
"REFERRAL_INFO": "We don't track app installs, It'd help us if you told us where you found us!",
"PASSPHRASE_MATCH_ERROR": "Passwords don't match",
- "CONSOLE_WARNING_STOP": "STOP!",
- "CONSOLE_WARNING_DESC": "This is a browser feature intended for developers. Please don't copy-paste unverified code here.",
"CREATE_COLLECTION": "New album",
"ENTER_ALBUM_NAME": "Album name",
"CLOSE_OPTION": "Close (Esc)",
diff --git a/web/apps/photos/src/pages/_app.tsx b/web/apps/photos/src/pages/_app.tsx
index 5d246c0550..ace2b399a3 100644
--- a/web/apps/photos/src/pages/_app.tsx
+++ b/web/apps/photos/src/pages/_app.tsx
@@ -272,16 +272,6 @@ export default function App(props: EnteAppProps) {
const setUserOffline = () => setOffline(true);
const resetSharedFiles = () => setSharedFiles(null);
- useEffect(() => {
- if (isI18nReady) {
- console.log(
- `%c${t("CONSOLE_WARNING_STOP")}`,
- "color: red; font-size: 52px;",
- );
- console.log(`%c${t("CONSOLE_WARNING_DESC")}`, "font-size: 20px;");
- }
- }, [isI18nReady]);
-
useEffect(() => {
const redirectTo = async (redirect) => {
if (