mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 08:34:54 +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)
|
// Cast "0" (T89513)
|
||||||
enable = Number( mw.user.options.get( 'visualeditor-enable' ) );
|
enable = +mw.user.options.get( 'visualeditor-enable' );
|
||||||
tempdisable = Number( mw.user.options.get( 'visualeditor-betatempdisable' ) );
|
tempdisable = +mw.user.options.get( 'visualeditor-betatempdisable' );
|
||||||
autodisable = Number( mw.user.options.get( 'visualeditor-autodisable' ) );
|
autodisable = +mw.user.options.get( 'visualeditor-autodisable' );
|
||||||
tabPreference = mw.user.options.get( 'visualeditor-tabs' );
|
tabPreference = mw.user.options.get( 'visualeditor-tabs' );
|
||||||
|
|
||||||
init.isSingleEditTab = conf.singleEditTab && tabPreference !== 'multi-tab';
|
init.isSingleEditTab = conf.singleEditTab && tabPreference !== 'multi-tab';
|
||||||
|
|
Loading…
Reference in a new issue