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(
|
await apiInjectScreenshot(
|
||||||
definition,
|
definition,
|
||||||
options.anki.terms.fields,
|
options.anki.terms.fields,
|
||||||
|
@ -49,6 +49,10 @@ function apiTemplateRender(template, data, dynamic) {
|
|||||||
return utilInvoke('templateRender', {data, template, dynamic});
|
return utilInvoke('templateRender', {data, template, dynamic});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function apiAudioGetUrl(definition, source) {
|
||||||
|
return utilInvoke('audioGetUrl', {definition, source});
|
||||||
|
}
|
||||||
|
|
||||||
function apiCommandExec(command) {
|
function apiCommandExec(command) {
|
||||||
return utilInvoke('commandExec', {command});
|
return utilInvoke('commandExec', {command});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user