* use @xarc/xrun to streamline tasks in an imperative manner * add lint-staged/husky for git hook tasks * run prettier across all files * fixing tests * add ci test workflow * add a ci workflow * remove precommit in favor of husky * add .prettierrc.js * reformat with prettier
13 lines
330 B
JavaScript
13 lines
330 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,
|
|
});
|