mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 14:56:20 +00:00
Merge "Revert "Media search dialog: Only try to abort request if possible""
This commit is contained in:
commit
66834d2e97
|
@ -129,7 +129,7 @@ ve.ui.MWMediaSearchWidget.prototype.queryMediaSources = function () {
|
|||
// If we don't have either 'apiurl' or 'scriptDirUrl'
|
||||
// the source is invalid, and we will skip it
|
||||
if ( source.apiurl || source.scriptDirUrl !== undefined ) {
|
||||
if ( source.request && source.request.abort ) {
|
||||
if ( source.request ) {
|
||||
source.request.abort();
|
||||
}
|
||||
if ( !source.gsroffset ) {
|
||||
|
|
Loading…
Reference in a new issue