diff options
| author | StefanVukovic99 <stefanvukovic44@gmail.com> | 2024-04-14 18:34:20 +0200 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-14 16:34:20 +0000 | 
| commit | f2b3eb4eddb282d4eb88488b3dbc47c948891a6d (patch) | |
| tree | d0701552f9a2d394948140f684149b9136fb59ca /ext/js | |
| parent | 0ca56ec3bb0425b84ca15f2711478c44fabd52df (diff) | |
fix (#811)
Diffstat (limited to 'ext/js')
| -rw-r--r-- | ext/js/comm/anki-connect.js | 11 | 
1 files changed, 0 insertions, 11 deletions
| diff --git a/ext/js/comm/anki-connect.js b/ext/js/comm/anki-connect.js index a763f394..72ad58a5 100644 --- a/ext/js/comm/anki-connect.js +++ b/ext/js/comm/anki-connect.js @@ -130,17 +130,6 @@ export class AnkiConnect {      /**       * @param {import('anki').Note[]} notes -     * @returns {Promise<boolean[]>} -     */ -    async canAddNotes(notes) { -        if (!this._enabled) { return []; } -        await this._checkVersion(); -        const result = await this._invoke('canAddNotes', {notes}); -        return this._normalizeArray(result, notes.length, 'boolean'); -    } - -    /** -     * @param {import('anki').Note[]} notes       * @returns {Promise<({ canAdd: true } | { canAdd: false, error: string })[]>}       */      async canAddNotesWithErrorDetail(notes) { |