Chrome Extension runtime


Author: yifei / Created: June 12, 2017, 11 p.m. / Modified: June 12, 2017, 11:23 p.m. / Edit

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

评论区