13 lines
346 B
JavaScript
13 lines
346 B
JavaScript
/* global browser */
|
|
|
|
// Create a connection to the background page
|
|
var backgroundPageConnection = browser.runtime.connect({
|
|
name: "devtools-page"
|
|
});
|
|
|
|
// Send a message to background page with the current active tabId
|
|
backgroundPageConnection.postMessage({
|
|
name: 'init',
|
|
tabId: browser.devtools.inspectedWindow.tabId
|
|
});
|