diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-04-27 18:10:59 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-27 18:10:59 -0400 |
commit | 0956634d61ef2b6202645ec4b502239573c2e743 (patch) | |
tree | e53dcf42db38c57d0e48cb0970574a3945951372 /ext/bg/js/anki-note-builder.js | |
parent | 48c7010f4ea8daafd30e5650625c377affa0cecd (diff) |
Add duplicateScope: 'deck' option (#476)
* Add duplicateScope: 'deck' option
* Add option to control duplicate scope
* Use duplicateScope for findNoteIds
* Update location of quotes
Diffstat (limited to 'ext/bg/js/anki-note-builder.js')
-rw-r--r-- | ext/bg/js/anki-note-builder.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/bg/js/anki-note-builder.js b/ext/bg/js/anki-note-builder.js index 9bab095d..dc1e9427 100644 --- a/ext/bg/js/anki-note-builder.js +++ b/ext/bg/js/anki-note-builder.js @@ -32,7 +32,10 @@ class AnkiNoteBuilder { fields: {}, tags, deckName: modeOptions.deck, - modelName: modeOptions.model + modelName: modeOptions.model, + options: { + duplicateScope: options.anki.duplicateScope + } }; for (const [fieldName, fieldValue] of modeOptionsFieldEntries) { |