From 064a31fcf8c5754f08620105b7da82e61f5a0306 Mon Sep 17 00:00:00 2001 From: Manvel Saroyan Date: Fri, 29 Dec 2023 20:42:08 +0400 Subject: [PATCH] Issue #117 - convert BG page to non persistent BG action (#126) --- src/back.html | 12 ------------ src/js/background/main.js | 1 - src/manifest.json | 3 ++- 3 files changed, 2 insertions(+), 14 deletions(-) delete mode 100644 src/back.html diff --git a/src/back.html b/src/back.html deleted file mode 100644 index 4ac628f..0000000 --- a/src/back.html +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - diff --git a/src/js/background/main.js b/src/js/background/main.js index 0b54cb1..0a5c00a 100644 --- a/src/js/background/main.js +++ b/src/js/background/main.js @@ -30,7 +30,6 @@ const {addRpcListener, sendRpcMessageResponse} = require("../rpc/host"); /** @global */ globalThis.cba = new CBA(); -//TODO: Use message passing to run the functions globalThis.cba.playButtonClick = playButtonClick; globalThis.cba.recordButtonClick = recordButtonClick; globalThis.cba.stopButtonClick = stopButtonClick; diff --git a/src/manifest.json b/src/manifest.json index 5037c11..286eb8d 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -1,6 +1,7 @@ { "background": { - "page": "back.html" + "scripts": ["js/back.js"], + "persistent": false }, "browser_action": { "default_icon": "logo.png",