-( function ( mw, $, OO ) {
+( function () {
/**
* Used to represent an upload in progress on the frontend.
*
// Config for uploads to local wiki.
// Can be overridden with foreign wiki config when #loadConfig is called.
- this.config = mw.config.get( 'wgUploadDialog' );
+ this.config = require( './config.json' ).UploadDialog;
mw.ForeignUpload.call( this, target, apiconfig );
}
};
mw.ForeignStructuredUpload = ForeignStructuredUpload;
-}( mediaWiki, jQuery, OO ) );
+}() );