Move apiFrameInformationGet implementation into Backend
This commit is contained in:
parent
daff44a010
commit
01a3432627
@ -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) {
|
||||
|
@ -431,7 +431,8 @@ class Backend {
|
||||
}
|
||||
|
||||
_onApiFrameInformationGet(params, sender) {
|
||||
return apiFrameInformationGet(sender);
|
||||
const frameId = sender.frameId;
|
||||
return Promise.resolve({frameId});
|
||||
}
|
||||
|
||||
_onApiInjectStylesheet({css}, sender) {
|
||||
|
Loading…
Reference in New Issue
Block a user