aboutsummaryrefslogtreecommitdiff
path: root/src/background/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/background/index.js')
-rw-r--r--src/background/index.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/background/index.js b/src/background/index.js
new file mode 100644
index 0000000..ee02f63
--- /dev/null
+++ b/src/background/index.js
@@ -0,0 +1,4 @@
+browser.runtime.onMessage.addListener((request, sender, sendResponse) => {
+ console.log("Pressed " + request.which);
+ sendResponse({ response: "Response from background script" });
+});