Fix note context on settings page (#1241)
This commit is contained in:
parent
1dcfbf6ba6
commit
9f202313c7
@ -173,9 +173,9 @@ class AnkiTemplatesController {
|
||||
if (definition !== null) {
|
||||
const options = await this._settingsController.getOptions();
|
||||
const context = {
|
||||
document: {
|
||||
title: document.title
|
||||
}
|
||||
url: window.location.href,
|
||||
sentence: {text: definition.rawSource, offset: 0},
|
||||
documentTitle: document.title
|
||||
};
|
||||
let templates = options.anki.fieldTemplates;
|
||||
if (typeof templates !== 'string') { templates = this._defaultFieldTemplates; }
|
||||
|
Loading…
Reference in New Issue
Block a user