From 08367a73d83e11dd58522ca01de95ef3e58bbe8c Mon Sep 17 00:00:00 2001 From: Karl Svartholm Date: Fri, 19 Dec 2025 21:58:49 +0100 Subject: [PATCH] Disable Monaco editor on Android user agents --- src/components/EditorPanel.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/EditorPanel.tsx b/src/components/EditorPanel.tsx index 270bd64..61cfd8e 100644 --- a/src/components/EditorPanel.tsx +++ b/src/components/EditorPanel.tsx @@ -17,7 +17,8 @@ import FilePicker, { } from './FilePicker.tsx'; const isMonacoSupported = (() => { const ua = window.navigator.userAgent; const iosWk = ua.match(/iPad|iPhone/i) && ua.match(/WebKit/i); - return !iosWk; + const android = ua.match(/Android/i); + return !(iosWk || android); })(); let monacoInstance: Monaco | null = null;