aboutsummaryrefslogtreecommitdiff
path: root/ext/mixed/js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2019-12-05 18:25:37 -0800
committerAlex Yatskov <alex@foosoft.net>2019-12-05 18:25:37 -0800
commit9105cb5618cfdd14c2bc37cd22db2b360fe8cd52 (patch)
treef93cb5fddb3c276542fef605ee21e4309300fc7a /ext/mixed/js
parentf9ea6206550ceee625ea93215a6e08d45a750086 (diff)
parent63f3e94bb18182afff694481899e5961cf505fdb (diff)
Merge branch 'master' into testing
Diffstat (limited to 'ext/mixed/js')
-rw-r--r--ext/mixed/js/display.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/mixed/js/display.js b/ext/mixed/js/display.js
index c32852ad..7d5e4e7d 100644
--- a/ext/mixed/js/display.js
+++ b/ext/mixed/js/display.js
@@ -354,8 +354,8 @@ class Display {
const sequence = ++this.sequence;
const params = {
definitions,
- source: this.context.previous,
- next: this.context.next,
+ source: !!this.context.previous,
+ next: !!this.context.next,
addable: options.anki.enable,
grouped: options.general.resultOutputMode === 'group',
merged: options.general.resultOutputMode === 'merge',
@@ -415,8 +415,8 @@ class Display {
const sequence = ++this.sequence;
const params = {
definitions,
- source: this.context.previous,
- next: this.context.next,
+ source: !!this.context.previous,
+ next: !!this.context.next,
addable: options.anki.enable,
debug: options.general.debugInfo
};