Disable Monaco editor on Android user agents
This commit is contained in:
parent
3858c9f9c5
commit
08367a73d8
1 changed files with 2 additions and 1 deletions
|
|
@ -17,7 +17,8 @@ import FilePicker, { } from './FilePicker.tsx';
|
||||||
const isMonacoSupported = (() => {
|
const isMonacoSupported = (() => {
|
||||||
const ua = window.navigator.userAgent;
|
const ua = window.navigator.userAgent;
|
||||||
const iosWk = ua.match(/iPad|iPhone/i) && ua.match(/WebKit/i);
|
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;
|
let monacoInstance: Monaco | null = null;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue