From f2b3eb4eddb282d4eb88488b3dbc47c948891a6d Mon Sep 17 00:00:00 2001 From: StefanVukovic99 Date: Sun, 14 Apr 2024 18:34:20 +0200 Subject: fix (#811) --- ext/js/comm/anki-connect.js | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'ext/js/comm') 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 @@ -128,17 +128,6 @@ export class AnkiConnect { return result; } - /** - * @param {import('anki').Note[]} notes - * @returns {Promise} - */ - 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 })[]>} -- cgit v1.2.3