mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-24 07:43:47 +00:00
0f594e0af7
Additional change: * Delete some unused messages Bug: T341278 Depends-On: I254d7d883771dbd394ba97799d731012f7aaaefc Change-Id: Ic40da2af8ea46bd42cbebbdbceda2431bd8600ae
18 lines
300 B
JavaScript
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
|
|
};
|