List of steps to reproduce (step by step, including full links if applicable):
- api = new mw.Api; api.postWithEditToken( {format: 'json', action: 'options', change:['userjs-TestSavingPrefs=lorem'] } ).then( function ( data ) {});
- The API response is "options: success" and HTTP 200 so it would seem okay.
- Reload page.
- mw.user.options.get('userjs-TestSavingPrefs');
What happens?:
null
What should have happened instead?:
lorem
Same code seems to work on production though. Special:Preferences also seems to work on betacommons.