MediaWiki:Gadget-libSensitiveIPs.js: Difference between revisions

Content deleted Content added
m fix parameter name
need to wrap the args in an array
Line 3:
var sensitiveIPs;
sensitiveIPs = mw.libs.sensitiveips = {
query: function ( argsparams ) {
if ( !( argsparams instanceof Object ) ) {
throw new TypeError( "type error in arg #1 to 'query' (object expected)" );
}
Line 11:
module: 'Sensitive IP addresses/API',
func: 'query',
args: args[ params ]
} );
},