From 79cc72dfbaee0a1740bdbdbc6711ba0103eca63e Mon Sep 17 00:00:00 2001 From: buzz-lightsnack-2007 <73412182+buzz-lightsnack-2007@users.noreply.github.com> Date: Sun, 28 Apr 2024 23:56:47 +0800 Subject: [PATCH] add message receiving in the background --- scripts/background/link.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 scripts/background/link.js diff --git a/scripts/background/link.js b/scripts/background/link.js new file mode 100644 index 0000000..3f0bade --- /dev/null +++ b/scripts/background/link.js @@ -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) => { + + }); + } +} \ No newline at end of file