mediawiki-skins-Vector/resources/skins.vector.js/userPreferences.js
Jon Robson 0f594e0af7 Make all frontend stored preferences global
Additional change:
* Delete some unused messages

Bug: T341278
Depends-On: I254d7d883771dbd394ba97799d731012f7aaaefc
Change-Id: Ic40da2af8ea46bd42cbebbdbceda2431bd8600ae
2024-06-18 16:37:53 +00:00

18 lines
300 B
JavaScript

let /** @type {MwApi} */ api;
/**
* @param {Object<string,string|number>} options
* @return {JQuery.Promise<Object>}
*/
function saveOptions( options ) {
api = api || new mw.Api();
// @ts-ignore
return api.saveOptions( options, {
global: 'update'
} );
}
module.exports = {
saveOptions
};