Created
February 4, 2024 23:47
-
-
Save JunkMeal/298436fb017c2defa50608a105e058d7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async function anki(action, params) { | |
return Object.values(await (await fetch("http://127.0.0.1:8765", { | |
method: "POST", | |
body: JSON.stringify({ | |
action, | |
version: 6, | |
params | |
}) | |
})).json()) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment