fix serialization errors on Chrome

This commit is contained in:
siikamiika 2019-12-04 21:49:51 +02:00
parent 3975aabf4d
commit d8935b6aa9

View File

@ -354,8 +354,8 @@ class Display {
const sequence = ++this.sequence; const sequence = ++this.sequence;
const params = { const params = {
definitions, definitions,
source: this.context.previous, source: !!this.context.previous,
next: this.context.next, next: !!this.context.next,
addable: options.anki.enable, addable: options.anki.enable,
grouped: options.general.resultOutputMode === 'group', grouped: options.general.resultOutputMode === 'group',
merged: options.general.resultOutputMode === 'merge', merged: options.general.resultOutputMode === 'merge',
@ -415,8 +415,8 @@ class Display {
const sequence = ++this.sequence; const sequence = ++this.sequence;
const params = { const params = {
definitions, definitions,
source: this.context.previous, source: !!this.context.previous,
next: this.context.next, next: !!this.context.next,
addable: options.anki.enable, addable: options.anki.enable,
debug: options.general.debugInfo debug: options.general.debugInfo
}; };