Chrome Extension runtime

# basic usage
“`
chrome.runtime.getBackgroundPage(function(window) {}) // retrive the background page’s window object
“`

“`
chrome.runtime.getURL(path) // get the absolute url for given file in extension package
“`

About 逸飞

后端工程师

发表评论

电子邮件地址不会被公开。 必填项已用*标注