diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2022-05-30 12:03:24 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-30 12:03:24 -0400 |
commit | 19bba07a8bccb51a9db85c13fd921d825defe753 (patch) | |
tree | 4354e2d3396f5957a005256a85f60d239ab30c0d /ext/js/data/options-util.js | |
parent | 0b5d54e7c66c17383e23855a1c3d4dbb1ea817fc (diff) |
Add support for Anki API key (#2169)
* Update material.css to support password fields
* Support password
* Add "apiKey" setting
* Use apiKey
* Update options if API key changes
* Update tests
Diffstat (limited to 'ext/js/data/options-util.js')
-rw-r--r-- | ext/js/data/options-util.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/js/data/options-util.js b/ext/js/data/options-util.js index f87bfa4b..f19094df 100644 --- a/ext/js/data/options-util.js +++ b/ext/js/data/options-util.js @@ -952,8 +952,10 @@ class OptionsUtil { _updateVersion19(options) { // Version 19 changes: // Added anki.noteGuiMode. + // Added anki.apiKey. for (const profile of options.profiles) { profile.options.anki.noteGuiMode = 'browse'; + profile.options.anki.apiKey = ''; } return options; } |