From 01a343262702d2c8641c7a4f990d439f38b90cb0 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Mon, 9 Dec 2019 21:55:45 -0500 Subject: Move apiFrameInformationGet implementation into Backend --- ext/bg/js/api.js | 3 +-- ext/bg/js/backend.js | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'ext/bg') 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) { -- cgit v1.2.3