mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 08:34:54 +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'
|
// If we don't have either 'apiurl' or 'scriptDirUrl'
|
||||||
// the source is invalid, and we will skip it
|
// the source is invalid, and we will skip it
|
||||||
if ( source.apiurl || source.scriptDirUrl !== undefined ) {
|
if ( source.apiurl || source.scriptDirUrl !== undefined ) {
|
||||||
if ( source.request && source.request.abort ) {
|
if ( source.request ) {
|
||||||
source.request.abort();
|
source.request.abort();
|
||||||
}
|
}
|
||||||
if ( !source.gsroffset ) {
|
if ( !source.gsroffset ) {
|
||||||
|
|
Loading…
Reference in a new issue