mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +00:00
Merge "Follow-up Ifdc951f: Don't use getLocalApi when VE not available"
This commit is contained in:
commit
4e17f2f131
|
@ -41,7 +41,7 @@ mw.libs.ve.SwitchPopupWidget = function MWLibsVESwitchPopupWidget( mode, config
|
|||
showAgainCheckbox = new OO.ui.CheckboxInputWidget()
|
||||
.on( 'change', function ( value ) {
|
||||
var configValue = value ? '1' : '';
|
||||
ve.init.target.getLocalApi().saveOption( option, configValue );
|
||||
new mw.Api().saveOption( option, configValue );
|
||||
mw.user.options.set( option, configValue );
|
||||
} );
|
||||
|
||||
|
|
Loading…
Reference in a new issue