mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeMirror
synced 2024-11-27 15:40:00 +00:00
Skip user setting for unnamed users
Bug: T329771 Change-Id: I0066c2411bf12fedb1e29cde8306b107c3ab95ba
This commit is contained in:
parent
ba64a52368
commit
6744545c61
|
@ -74,7 +74,7 @@
|
|||
function setCodeEditorPreference( prefValue ) {
|
||||
useCodeMirror = prefValue; // Save state for function updateToolbarButton()
|
||||
|
||||
if ( mw.user.isAnon() ) { // Skip it for anon users
|
||||
if ( !mw.user.isNamed() ) { // Skip it for unnamed users
|
||||
return;
|
||||
}
|
||||
api.saveOption( 'usecodemirror', prefValue ? 1 : 0 );
|
||||
|
|
Loading…
Reference in a new issue