add message receiving in the background
This commit is contained in:
parent
cbe7ea6042
commit
79cc72dfba
1 changed files with 12 additions and 0 deletions
12
scripts/background/link.js
Normal file
12
scripts/background/link.js
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
/* link.js
|
||||||
|
Link the content scripts to the background scripts.
|
||||||
|
*/
|
||||||
|
|
||||||
|
class link {
|
||||||
|
constructor () {
|
||||||
|
// Create a listener for events.
|
||||||
|
chrome.runtime.onMessage.addListener(async (message, sender, sendResponse) => {
|
||||||
|
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue