fix serialization errors on Chrome
This commit is contained in:
parent
3975aabf4d
commit
d8935b6aa9
@ -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
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user