pr fixes
This commit is contained in:
parent
9ec711b780
commit
317a7a1538
@ -64,7 +64,7 @@ async function apiDefinitionAdd(definition, mode, context) {
|
||||
);
|
||||
}
|
||||
|
||||
if (context.screenshot) {
|
||||
if (context && context.screenshot) {
|
||||
await apiInjectScreenshot(
|
||||
definition,
|
||||
options.anki.terms.fields,
|
||||
|
@ -49,6 +49,10 @@ function apiTemplateRender(template, data, dynamic) {
|
||||
return utilInvoke('templateRender', {data, template, dynamic});
|
||||
}
|
||||
|
||||
function apiAudioGetUrl(definition, source) {
|
||||
return utilInvoke('audioGetUrl', {definition, source});
|
||||
}
|
||||
|
||||
function apiCommandExec(command) {
|
||||
return utilInvoke('commandExec', {command});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user