From bd56f475a52126e4f523a7b3d7931e9da2316741 Mon Sep 17 00:00:00 2001 From: stuzer05 Date: Thu, 3 Feb 2022 00:20:09 +0200 Subject: [PATCH] Disable monaco editor on mobile --- assets/js/scripts.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/assets/js/scripts.js b/assets/js/scripts.js index ac56ec9..ff0fa2f 100644 --- a/assets/js/scripts.js +++ b/assets/js/scripts.js @@ -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";