1
0

Disable monaco editor on mobile

This commit is contained in:
Illya Marchenko 2022-02-03 00:20:09 +02:00
parent a5795b2b70
commit bd56f475a5

@ -188,6 +188,9 @@ let MediaWikiTokenizer = (function () {
require.config({ paths: { vs: '/extensions/MonacoEditor/node_modules/monaco-editor/min/vs' } });
require(['vs/editor/editor.main'], function () {
// Disable editor on mobile
if (typeof window.RLCONF.wgMFAmc !== 'undefined') return;
let el_stock_editor = document.getElementById("wpTextbox1");
el_stock_editor.style.display = "none";