summaryrefslogtreecommitdiff
path: root/ext/bg/js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-11-25 14:35:53 -0500
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-11-26 22:06:27 -0500
commitacb70f126cd87234b442fd599061f1b7539c846b (patch)
treeaff2dabacced5f2b8aedc0a9fe4ac2076cdb48af /ext/bg/js
parentef833d2bea07cd2e979dd558eaba141f880063cb (diff)
Update unused arguments
Diffstat (limited to 'ext/bg/js')
-rw-r--r--ext/bg/js/anki.js10
-rw-r--r--ext/bg/js/backend.js2
-rw-r--r--ext/bg/js/search.js4
3 files changed, 8 insertions, 8 deletions
diff --git a/ext/bg/js/anki.js b/ext/bg/js/anki.js
index 9f851f13..ac45784b 100644
--- a/ext/bg/js/anki.js
+++ b/ext/bg/js/anki.js
@@ -108,11 +108,11 @@ class AnkiConnect {
*/
class AnkiNull {
- async addNote(note) {
+ async addNote() {
return null;
}
- async canAddNotes(notes) {
+ async canAddNotes() {
return [];
}
@@ -124,15 +124,15 @@ class AnkiNull {
return [];
}
- async getModelFieldNames(modelName) {
+ async getModelFieldNames() {
return [];
}
- async guiBrowse(query) {
+ async guiBrowse() {
return [];
}
- async findNoteIds(notes) {
+ async findNoteIds() {
return [];
}
}
diff --git a/ext/bg/js/backend.js b/ext/bg/js/backend.js
index 4190116b..73df7cf5 100644
--- a/ext/bg/js/backend.js
+++ b/ext/bg/js/backend.js
@@ -177,7 +177,7 @@ class Backend {
}
}
- checkLastError(e) {
+ checkLastError() {
// NOP
}
}
diff --git a/ext/bg/js/search.js b/ext/bg/js/search.js
index e5cdf272..a98d7a9a 100644
--- a/ext/bg/js/search.js
+++ b/ext/bg/js/search.js
@@ -167,7 +167,7 @@ class DisplaySearch extends Display {
this.onSearchQueryUpdated(query, true);
}
- onPopState(e) {
+ onPopState() {
const query = DisplaySearch.getSearchQueryFromLocation(window.location.href) || '';
if (this.query !== null) {
if (this.isWanakanaEnabled()) {
@@ -245,7 +245,7 @@ class DisplaySearch extends Display {
initClipboardMonitor() {
// ignore copy from search page
- window.addEventListener('copy', (e) => {
+ window.addEventListener('copy', () => {
this.clipboardPrevText = document.getSelection().toString().trim();
});
}