Content deleted Content added
wrong message was shown |
more reliable VisualEditor detection |
||
Line 1:
mw.loader.using(
'user.options', 'ext.visualEditor.desktopArticleTarget.init'
], function codeEditorAssist() {
let isEdit = mw.config.exists('wgCodeEditorCurrentLanguage') && (
['edit', 'submit'].includes(mw.config.get('wgAction')) ||
mw.config.get('wgCanonicalSpecialPageName') === 'GraphSandbox'
);
let veAvailable =
let isAf = mw.config.exists('aceConfig');
if (!isEdit && !veAvailable && !isAf) return;
|