mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-13 17:56:55 +00:00
Fix TypeError: u.abort is not a function
The abort method is not always present and the xhr may not be abortable. This mirrors the 'abort' in promise check later in the file. Bug: T259652 Change-Id: I7dad89b083d6a0a83ffc59e29af8942cb0eaf640
This commit is contained in:
parent
85006a8e5e
commit
5dfb0ea04e
BIN
resources/dist/index.js
vendored
BIN
resources/dist/index.js
vendored
Binary file not shown.
BIN
resources/dist/index.js.map.json
vendored
BIN
resources/dist/index.js.map.json
vendored
Binary file not shown.
|
@ -342,7 +342,9 @@ export function referenceClick( title, el, gateway, generateToken ) {
|
|||
if ( !clickFollowsDwellEvent() ) {
|
||||
token = generateToken();
|
||||
} else {
|
||||
dwellPromise.abort();
|
||||
if ( 'abort' in dwellPromise ) {
|
||||
dwellPromise.abort();
|
||||
}
|
||||
}
|
||||
|
||||
dispatch( timedAction( {
|
||||
|
|
Loading…
Reference in a new issue