From d8935b6aa96ef54263bda439c9ebcc4418b0503f Mon Sep 17 00:00:00 2001 From: siikamiika Date: Wed, 4 Dec 2019 21:49:51 +0200 Subject: fix serialization errors on Chrome --- ext/mixed/js/display.js | 8 ++++---- 1 file 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 }; -- cgit v1.2.3