aboutsummaryrefslogtreecommitdiff
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.js16
1 files changed, 10 insertions, 6 deletions
diff --git a/ext/fg/js/frontend.js b/ext/fg/js/frontend.js
index bd64f1ac..49cf4ca6 100644
--- a/ext/fg/js/frontend.js
+++ b/ext/fg/js/frontend.js
@@ -432,13 +432,17 @@ class Frontend {
}
_showPopupContent(textSource, optionsContext, type=null, details=null) {
- const context = {optionsContext, source: this._id};
this._lastShowPromise = this._popup.showContent(
- textSource.getRect(),
- textSource.getWritingMode(),
- type,
- details,
- context
+ {
+ source: this._id,
+ optionsContext,
+ elementRect: textSource.getRect(),
+ writingMode: textSource.getWritingMode()
+ },
+ {
+ type,
+ details
+ }
);
this._lastShowPromise.catch((error) => {
if (yomichan.isExtensionUnloaded) { return; }