Page MenuHomeWickedGov Phorge

actionParams.js
No OneTemporary

Size
450 B
Referenced Files
None
Subscribers
None

actionParams.js

const util = require( './util' ),
defaultParams = {
action: 'query',
formatversion: 2
};
/**
* Extends the default params for an action query with otherParams
*
* @ignore
* @param {Object} otherParams
* @return {Object}
*/
module.exports = function actionParams( otherParams ) {
const scriptPath = mw.config.get( 'wgMFScriptPath' );
return util.extend( {}, defaultParams, {
origin: scriptPath ? '*' : undefined
}, otherParams );
};

File Metadata

Mime Type
text/plain
Expires
Tue, Aug 18, 22:47 (17 h, 33 m ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
c5/66/37c302c5501ba88918357feb0138
Default Alt Text
actionParams.js (450 B)

Event Timeline