From 4f3afcd5cd0df68a3f915d7c2be04cb3a448f9df Mon Sep 17 00:00:00 2001 From: hoshimach1 Date: Sun, 11 Jan 2026 07:24:34 +0300 Subject: [PATCH] Deleted dev profile --- web_app/static/js/app.js | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/web_app/static/js/app.js b/web_app/static/js/app.js index 1c8b944..c0e080f 100644 --- a/web_app/static/js/app.js +++ b/web_app/static/js/app.js @@ -164,6 +164,24 @@ function applyTranslations(container = document) { // Telegram Init const tg = window.Telegram?.WebApp; +function showAccessDenied() { + document.body.innerHTML = ''; + const div = document.createElement('div'); + div.style.cssText = 'display:flex; flex-direction:column; align-items:center; justify-content:center; height:100vh; padding:24px; text-align:center; background:var(--md-sys-color-background); color:var(--md-sys-color-on-background); font-family:var(--font-brand);'; + + div.innerHTML = ` + +

Access Restricted

+

+ This application is designed to be used exclusively via Telegram. +

+ + Open Telegram + + `; + document.body.appendChild(div); +} + function initApp() { // Enhanced OS Detection const ua = navigator.userAgent.toLowerCase(); @@ -195,9 +213,10 @@ function initApp() { tg.onEvent('themeChanged', applyTheme); } - // Dev Mock + // Check Auth if (!currentState.user) { - currentState.user = { id: 583602906, first_name: 'Dev', username: 'developer', photo_url: null }; + showAccessDenied(); + return; } // Avatar Setup