From 1f472f278a39befed83b38d7f2e15c208ac3b629 Mon Sep 17 00:00:00 2001
From: Valentin Rigal <rigal@teklia.com>
Date: Thu, 3 Jun 2021 11:41:02 +0200
Subject: [PATCH] Remove background script

---
 src/background.js | 4 ----
 src/manifest.json | 6 ------
 vue.config.js     | 8 +-------
 3 files changed, 1 insertion(+), 17 deletions(-)
 delete mode 100644 src/background.js

diff --git a/src/background.js b/src/background.js
deleted file mode 100644
index f614795c..00000000
--- a/src/background.js
+++ /dev/null
@@ -1,4 +0,0 @@
-browser.runtime.onMessage.addListener(function (request, sender, sendResponse) {
-  console.log("Hello from the background");
-  console.log(request, sender, sendResponse);
-});
diff --git a/src/manifest.json b/src/manifest.json
index 464ed9ec..98a6e854 100644
--- a/src/manifest.json
+++ b/src/manifest.json
@@ -13,12 +13,6 @@
     "48": "icons/keyboard-48.png",
     "128": "icons/keyboard-128.png"
   },
-  "background": {
-    "scripts": [
-      "js/background.js"
-    ],
-    "persistent": false
-  },
   "browser_action": {
     "default_popup": "popup.html",
     "default_title": "Virtual keyboard",
diff --git a/vue.config.js b/vue.config.js
index 211a7b5e..dec60c63 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -13,12 +13,6 @@ module.exports = {
     },
   },
   pluginOptions: {
-    browserExtension: {
-      componentOptions: {
-        background: {
-          entry: "src/background.js",
-        },
-      },
-    },
+    browserExtension: {},
   },
 };
-- 
GitLab