MediaWiki:Gadget-libSensitiveIPs.js: Difference between revisions

Content deleted Content added
shorter error prefix
 
(2 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 112 ⟶ 114:
} else {
return deferred.reject(
'lib-sensitiveipslibsips-unknown-api-error',
{ error: {
code: 'libsips-unknown-api-error',