MediaWiki:Gadget-libSensitiveIPs.js: Difference between revisions
Content deleted Content added
m fix the copyright year |
m Mr. Stradivarius moved page User:Mr. Stradivarius/gadgets/libSensitiveIPs.js to MediaWiki:Gadget-libSensitiveIPs.js without leaving a redirect: see Wikipedia:Village pump (technical)/Archive 149#Sensitive IP addresses follow-up |
||
(4 intermediate revisions by the same user not shown) | |||
Line 26:
*
* mw.loader.using( [ 'ext.gadget.libSensitiveIPs' ], function () {
* mw.libs.sensitiveIPs.query( {
* test: [ '1.2.3.4', '5.6.7.8' ] * } ).then( function ( result ) { * // Do something with the result
* } );
Line 109 ⟶ 111:
return deferred.resolve( data );
} else if ( data.error ) {
return deferred.reject( data.error.code, data );
} else {
return deferred.reject(
'
{ error: {
code: '
info: 'unexpected API response from mw.libs.lua'
} }
|