diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2021-05-17 20:18:37 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-17 20:18:37 -0400 |
commit | 76276e78dac387df66384a10bc1179c90ebd93fe (patch) | |
tree | ba11d7bf4375aa76ae45646b45953df9e71f1d78 /dev/translator-vm.js | |
parent | 12451eaf61281e588fb8ef5f911d604ba34aca92 (diff) |
Expose search query to anki template renderer (#1686)
* Expose query and fullQuery to Anki context
* Add {search-query} marker
* Update test data
* Update tests
* Wrap search query in multiLine
Diffstat (limited to 'dev/translator-vm.js')
-rw-r--r-- | dev/translator-vm.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/dev/translator-vm.js b/dev/translator-vm.js index 4b5403da..8397b65e 100644 --- a/dev/translator-vm.js +++ b/dev/translator-vm.js @@ -116,7 +116,9 @@ class TranslatorVM extends DatabaseVM { context: { url: 'url:', sentence: {text: '', offset: 0}, - documentTitle: 'title' + documentTitle: 'title', + query: 'query', + fullQuery: 'fullQuery' }, injectedMedia: null }; |