Skip to content

Commit

Permalink
Fix missing return for special API endpoint.
Browse files Browse the repository at this point in the history
  • Loading branch information
matgrioni authored and david-allison committed Aug 29, 2024
1 parent 034e906 commit 015b06f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions AnkiDroid/src/main/assets/scripts/js-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ Object.keys(jsApiList).forEach(method => {
const data = JSON.stringify({ noteId, tag });
return await this.handleRequest(endpoint, data);
};
return;
}
if (method === "ankiTtsSpeak") {
AnkiDroidJS.prototype[method] = async function (text, queueMode = 0) {
Expand Down

0 comments on commit 015b06f

Please sign in to comment.