From 4d992a260e3f4b11892db2f3b91e7461f322f5e3 Mon Sep 17 00:00:00 2001 From: dj-oyu <68707227+dj-oyu@users.noreply.github.com> Date: Tue, 24 Feb 2026 17:32:48 +0900 Subject: [PATCH] fix: dev-console capture uses Blob with JSON content-type and fetch fallback sendBeacon with a plain string sends Content-Type text/plain, which can be silently blocked in Telegram WebView. Use a Blob with application/json instead, and fall back to fetch with keepalive when sendBeacon is unavailable or returns false. Co-Authored-By: Claude Opus 4.6 --- pkg/miniapp/miniapp.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkg/miniapp/miniapp.go b/pkg/miniapp/miniapp.go index d604b2129..785434db5 100644 --- a/pkg/miniapp/miniapp.go +++ b/pkg/miniapp/miniapp.go @@ -439,7 +439,11 @@ const devProxyScript = `