aboutsummaryrefslogtreecommitdiff
path: root/ext/fg/js/frame.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/fg/js/frame.js')
-rw-r--r--ext/fg/js/frame.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/fg/js/frame.js b/ext/fg/js/frame.js
index b5077531..32e227d0 100644
--- a/ext/fg/js/frame.js
+++ b/ext/fg/js/frame.js
@@ -36,7 +36,7 @@ class Frame {
const params = {
definitions,
grouped: options.general.groupResults,
- addable: options.ankiMethod !== 'disabled',
+ addable: options.anki.enabled,
playback: options.general.audioPlayback
};
@@ -49,7 +49,7 @@ class Frame {
this.showSpinner(false);
window.scrollTo(0, 0);
- bgTextRender(params, 'terms.html').then(content => {
+ bgTextRender('terms.html', params).then(content => {
$('#content').html(content);
$('.action-add-note').click(this.onAddNote.bind(this));
@@ -87,7 +87,7 @@ class Frame {
this.showSpinner(false);
window.scrollTo(0, 0);
- bgTextRender(params, 'kanji.html').then(content => {
+ bgTextRender('kanji.html', params).then(content => {
$('#content').html(content);
$('.action-add-note').click(this.onAddNote.bind(this));