mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-12 09:09:25 +00:00
Merge "Use preferred number casting method"
This commit is contained in:
commit
7c790f8d12
|
@ -706,9 +706,9 @@
|
|||
};
|
||||
|
||||
// Cast "0" (T89513)
|
||||
enable = Number( mw.user.options.get( 'visualeditor-enable' ) );
|
||||
tempdisable = Number( mw.user.options.get( 'visualeditor-betatempdisable' ) );
|
||||
autodisable = Number( mw.user.options.get( 'visualeditor-autodisable' ) );
|
||||
enable = +mw.user.options.get( 'visualeditor-enable' );
|
||||
tempdisable = +mw.user.options.get( 'visualeditor-betatempdisable' );
|
||||
autodisable = +mw.user.options.get( 'visualeditor-autodisable' );
|
||||
tabPreference = mw.user.options.get( 'visualeditor-tabs' );
|
||||
|
||||
init.isSingleEditTab = conf.singleEditTab && tabPreference !== 'multi-tab';
|
||||
|
|
Loading…
Reference in a new issue