WIP
This commit is contained in:
parent
7015b80469
commit
8c1ebe6bcb
@ -103,10 +103,11 @@ class Yomichan {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ankiInvoke(action, params, pool, callback) {
|
ankiInvoke(action, params, pool, callback) {
|
||||||
|
if (this.options.enableAnkiConnect) {
|
||||||
if (pool !== null && this.asyncPools.hasOwnProperty(pool)) {
|
if (pool !== null && this.asyncPools.hasOwnProperty(pool)) {
|
||||||
this.asyncPools[pool].abort();
|
this.asyncPools[pool].abort();
|
||||||
callback(null);
|
}
|
||||||
} else if (this.options.enableAnkiConnect) {
|
|
||||||
const xhr = new XMLHttpRequest();
|
const xhr = new XMLHttpRequest();
|
||||||
xhr.addEventListener('loadend', () => {
|
xhr.addEventListener('loadend', () => {
|
||||||
if (pool !== null) {
|
if (pool !== null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user