aboutsummaryrefslogtreecommitdiff
path: root/ext/js/data/anki-note-data-creator.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/js/data/anki-note-data-creator.js')
-rw-r--r--ext/js/data/anki-note-data-creator.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/js/data/anki-note-data-creator.js b/ext/js/data/anki-note-data-creator.js
index d1bbec18..4cf62788 100644
--- a/ext/js/data/anki-note-data-creator.js
+++ b/ext/js/data/anki-note-data-creator.js
@@ -141,9 +141,11 @@ class AnkiNoteDataCreator {
}
_getPublicContext(context) {
- let {documentTitle} = this._asObject(context);
+ let {documentTitle, query, fullQuery} = this._asObject(context);
if (typeof documentTitle !== 'string') { documentTitle = ''; }
return {
+ query,
+ fullQuery,
document: {
title: documentTitle
}