mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 23:05:35 +00:00
Use preferred number casting method
Change-Id: I77215f2bdb6eb055375e5b803d23b6f26df2d8d1
This commit is contained in:
parent
2217913182
commit
3f47aec20b
|
@ -699,9 +699,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