aboutsummaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/bg/js/api.js3
-rw-r--r--ext/bg/js/backend.js3
2 files changed, 3 insertions, 3 deletions
diff --git a/ext/bg/js/api.js b/ext/bg/js/api.js
index bafbdf39..ff5c8abf 100644
--- a/ext/bg/js/api.js
+++ b/ext/bg/js/api.js
@@ -82,8 +82,7 @@ function apiForward(action, params, sender) {
}
function apiFrameInformationGet(sender) {
- const frameId = sender.frameId;
- return Promise.resolve({frameId});
+ return utilBackend()._onApiFrameInformationGet(null, sender);
}
function apiInjectStylesheet(css, sender) {
diff --git a/ext/bg/js/backend.js b/ext/bg/js/backend.js
index e9b50789..4b94d073 100644
--- a/ext/bg/js/backend.js
+++ b/ext/bg/js/backend.js
@@ -431,7 +431,8 @@ class Backend {
}
_onApiFrameInformationGet(params, sender) {
- return apiFrameInformationGet(sender);
+ const frameId = sender.frameId;
+ return Promise.resolve({frameId});
}
_onApiInjectStylesheet({css}, sender) {