summaryrefslogtreecommitdiff
path: root/ext/fg/js/frontend.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/fg/js/frontend.js')
-rw-r--r--ext/fg/js/frontend.js20
1 files changed, 13 insertions, 7 deletions
diff --git a/ext/fg/js/frontend.js b/ext/fg/js/frontend.js
index 49cf4ca6..73cea841 100644
--- a/ext/fg/js/frontend.js
+++ b/ext/fg/js/frontend.js
@@ -426,12 +426,21 @@ class Frontend {
this._showPopupContent(
textSource,
optionsContext,
- type,
- {definitions, context: {sentence, url, focus, disableHistory: true}}
+ {
+ focus,
+ history: false,
+ type,
+ source: textSource.text(),
+ definitions,
+ context: {
+ sentence,
+ url
+ }
+ }
);
}
- _showPopupContent(textSource, optionsContext, type=null, details=null) {
+ _showPopupContent(textSource, optionsContext, details=null) {
this._lastShowPromise = this._popup.showContent(
{
source: this._id,
@@ -439,10 +448,7 @@ class Frontend {
elementRect: textSource.getRect(),
writingMode: textSource.getWritingMode()
},
- {
- type,
- details
- }
+ details
);
this._lastShowPromise.catch((error) => {
if (yomichan.isExtensionUnloaded) { return; }