MediaWiki:Gadget-extra-toolbar-buttons-core.js: Difference between revisions
Content deleted Content added
Fix test: mw.user.options.get(...) sometimes returns the string "0" if the user disabled the preference (bugzilla:52542#c3); Omit quotes for property names; Remove anonymous function |
Writ Keeper (talk | contribs) fix |
||
(4 intermediate revisions by 4 users not shown) | |||
Line 104:
mw.loader.using( 'user.options', function () {
// This can be the string "0" if the user disabled the preference ([[bugzilla:52542#c3]])
if ( mw.user.options.get( 'usebetatoolbar' ) != 1 && mw.user.options.get( '
▲ ).then( addExtraButtons );
}
} );
|