Add ipcRenderer.sendTo
This commit is contained in:
parent
d55b96fdf5
commit
ae1f442b02
3 changed files with 39 additions and 2 deletions
|
@ -130,6 +130,25 @@ exports.injectTo = function (extensionId, context) {
|
|||
}
|
||||
|
||||
chrome.extension = {
|
||||
getURL: chrome.runtime.getURL
|
||||
getURL: chrome.runtime.getURL,
|
||||
connect: chrome.runtime.connect
|
||||
onConnect: chrome.runtime.onConnect
|
||||
}
|
||||
|
||||
chrome.storage = {
|
||||
sync: {
|
||||
get () {},
|
||||
set () {}
|
||||
}
|
||||
}
|
||||
|
||||
chrome.pageAction = {
|
||||
show: () {},
|
||||
hide: () {},
|
||||
setTitle: () {},
|
||||
getTitle: () {},
|
||||
setIcon: () {},
|
||||
setPopup: () {},
|
||||
getPopup: () {}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue