summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-07-06 20:07:13 -0400
committerGitHub <noreply@github.com>2021-07-06 20:07:13 -0400
commitdf72c3927bae61d8d46b8a0ccd3e309f0d622bb0 (patch)
tree4dae360990f77db61979effc69f3d024f8f2baaf
parente88d63fc6d251bc298eb721fee1cbb9f5f4b752e (diff)
Fix function names (#1803)
-rw-r--r--ext/js/background/backend.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/js/background/backend.js b/ext/js/background/backend.js
index 33650319..8ad6c19f 100644
--- a/ext/js/background/backend.js
+++ b/ext/js/background/backend.js
@@ -1691,7 +1691,7 @@ class Backend {
try {
if (screenshotDetails !== null) {
- screenshotFileName = await this._injectAnkNoteScreenshot(ankiConnect, timestamp, definitionDetails, screenshotDetails);
+ screenshotFileName = await this._injectAnkiNoteScreenshot(ankiConnect, timestamp, definitionDetails, screenshotDetails);
}
} catch (e) {
errors.push(serializeError(e));
@@ -1699,7 +1699,7 @@ class Backend {
try {
if (clipboardDetails !== null && clipboardDetails.image) {
- clipboardImageFileName = await this._injectAnkNoteClipboardImage(ankiConnect, timestamp, definitionDetails);
+ clipboardImageFileName = await this._injectAnkiNoteClipboardImage(ankiConnect, timestamp, definitionDetails);
}
} catch (e) {
errors.push(serializeError(e));
@@ -1715,7 +1715,7 @@ class Backend {
try {
if (audioDetails !== null) {
- audioFileName = await this._injectAnkNoteAudio(ankiConnect, timestamp, definitionDetails, audioDetails);
+ audioFileName = await this._injectAnkiNoteAudio(ankiConnect, timestamp, definitionDetails, audioDetails);
}
} catch (e) {
errors.push(serializeError(e));
@@ -1732,7 +1732,7 @@ class Backend {
};
}
- async _injectAnkNoteAudio(ankiConnect, timestamp, definitionDetails, details) {
+ async _injectAnkiNoteAudio(ankiConnect, timestamp, definitionDetails, details) {
const {type, term, reading} = definitionDetails;
if (
type === 'kanji' ||
@@ -1767,7 +1767,7 @@ class Backend {
return fileName;
}
- async _injectAnkNoteScreenshot(ankiConnect, timestamp, definitionDetails, details) {
+ async _injectAnkiNoteScreenshot(ankiConnect, timestamp, definitionDetails, details) {
const {tabId, frameId, format, quality} = details;
const dataUrl = await this._getScreenshot(tabId, frameId, format, quality);
@@ -1783,7 +1783,7 @@ class Backend {
return fileName;
}
- async _injectAnkNoteClipboardImage(ankiConnect, timestamp, definitionDetails) {
+ async _injectAnkiNoteClipboardImage(ankiConnect, timestamp, definitionDetails) {
const dataUrl = await this._clipboardReader.getImage();
if (dataUrl === null) {
return null;