Skip to content

Commit 95915f2

Browse files
authored
Merge pull request #139 from gorbiz/fix/disable-monaco-android
Disable Monaco editor on Android user agents
2 parents 3858c9f + 08367a7 commit 95915f2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/EditorPanel.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ import FilePicker, { } from './FilePicker.tsx';
1717
const isMonacoSupported = (() => {
1818
const ua = window.navigator.userAgent;
1919
const iosWk = ua.match(/iPad|iPhone/i) && ua.match(/WebKit/i);
20-
return !iosWk;
20+
const android = ua.match(/Android/i);
21+
return !(iosWk || android);
2122
})();
2223

2324
let monacoInstance: Monaco | null = null;

0 commit comments

Comments
 (0)