summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/bg/js/backend.js22
1 files changed, 0 insertions, 22 deletions
diff --git a/ext/bg/js/backend.js b/ext/bg/js/backend.js
index 3f00994a..d1d25153 100644
--- a/ext/bg/js/backend.js
+++ b/ext/bg/js/backend.js
@@ -1255,11 +1255,6 @@ class Backend {
return false;
}
- _getTemplates(options) {
- const templates = options.anki.fieldTemplates;
- return typeof templates === 'string' ? templates : this._defaultAnkiFieldTemplates;
- }
-
async _getTabUrl(tabId) {
try {
const {url} = await this._sendMessageTabPromise(
@@ -1462,23 +1457,6 @@ class Backend {
return isValidTab ? tab : null;
}
- _environmentHasDocument() {
- return (typeof document === 'object' && document !== null);
- }
-
- _executePasteCommand() {
- document.execCommand('paste');
- }
-
- _readFileAsDataURL(file) {
- return new Promise((resolve, reject) => {
- const reader = new FileReader();
- reader.onload = () => resolve(reader.result);
- reader.onerror = () => reject(reader.error);
- reader.readAsDataURL(file);
- });
- }
-
async _getScreenshot(windowId, tabId, ownerFrameId, format, quality) {
if (typeof windowId !== 'number') {
throw new Error('Invalid window ID');