mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 08:34:54 +00:00
If init fails once, don't completely break when the user retries
The loading progress would not be reset upon failure, causing issues when you tried to start loading again. Bug: T96437 Change-Id: I7ec4be82304c101fa1bd634f60bc6b0047e2d53d
This commit is contained in:
parent
aa7fcf27e6
commit
23691dc861
|
@ -181,6 +181,9 @@
|
||||||
target.on( 'deactivate', function () {
|
target.on( 'deactivate', function () {
|
||||||
active = false;
|
active = false;
|
||||||
} );
|
} );
|
||||||
|
target.on( 'loadError', function () {
|
||||||
|
resetLoadingProgress();
|
||||||
|
} );
|
||||||
return target.activate( dataPromise );
|
return target.activate( dataPromise );
|
||||||
} )
|
} )
|
||||||
.then( function () {
|
.then( function () {
|
||||||
|
|
Loading…
Reference in a new issue