aboutsummaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-12-09 21:55:45 -0500
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-12-13 23:11:56 -0500
commit01a343262702d2c8641c7a4f990d439f38b90cb0 (patch)
tree72bc93dc9d3177b0507cab701f1a74c7f579e281 /ext
parentdaff44a010b3b926004f6888d62fe408da90966d (diff)
Move apiFrameInformationGet implementation into Backend
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) {