Move apiFrameInformationGet implementation into Backend

This commit is contained in:
toasted-nutbread 2019-12-09 21:55:45 -05:00
parent daff44a010
commit 01a3432627
2 changed files with 3 additions and 3 deletions

View File

@ -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) {

View File

@ -431,7 +431,8 @@ class Backend {
}
_onApiFrameInformationGet(params, sender) {
return apiFrameInformationGet(sender);
const frameId = sender.frameId;
return Promise.resolve({frameId});
}
_onApiInjectStylesheet({css}, sender) {