aboutsummaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/bg/js/search.js4
-rw-r--r--ext/fg/js/float.js2
-rw-r--r--ext/mixed/js/display.js4
3 files changed, 5 insertions, 5 deletions
diff --git a/ext/bg/js/search.js b/ext/bg/js/search.js
index ba66d5a9..673f066b 100644
--- a/ext/bg/js/search.js
+++ b/ext/bg/js/search.js
@@ -220,12 +220,12 @@ class DisplaySearch extends Display {
this.updateSearchButton();
if (valid) {
const {definitions} = await apiTermsFind(query, details, this.optionsContext);
- this.setContentTerms(definitions, {
+ this.setContent('terms', {definitions, context: {
focus: false,
disableHistory: true,
sentence: {text: query, offset: 0},
url: window.location.href
- });
+ }});
} else {
this.container.textContent = '';
}
diff --git a/ext/fg/js/float.js b/ext/fg/js/float.js
index 513d246b..c550579d 100644
--- a/ext/fg/js/float.js
+++ b/ext/fg/js/float.js
@@ -35,7 +35,7 @@ class DisplayFloat extends Display {
onError(error) {
if (this._orphaned) {
- this.setContentOrphaned();
+ this.setContent('orphaned');
} else {
logError(error, true);
}
diff --git a/ext/mixed/js/display.js b/ext/mixed/js/display.js
index f5b2225d..cc5bc95f 100644
--- a/ext/mixed/js/display.js
+++ b/ext/mixed/js/display.js
@@ -77,7 +77,7 @@ class Display {
};
const definitions = await apiKanjiFind(link.textContent, this.getOptionsContext());
- this.setContentKanji(definitions, context);
+ this.setContent('kanji', {definitions, context});
} catch (error) {
this.onError(error);
}
@@ -131,7 +131,7 @@ class Display {
});
}
- this.setContentTerms(definitions, context);
+ this.setContent('terms', {definitions, context});
if (selectText) {
textSource.select();