From 19bba07a8bccb51a9db85c13fd921d825defe753 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Mon, 30 May 2022 12:03:24 -0400 Subject: 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 --- ext/js/data/options-util.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ext/js/data') 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; } -- cgit v1.2.3