From 5126e662984aced4f696dd80afb1fae8f26d089d Mon Sep 17 00:00:00 2001 From: abhijithvijayan <34790378+abhijithvijayan@users.noreply.github.com> Date: Sat, 16 Nov 2019 13:39:02 +0530 Subject: [PATCH] chore: declaratively inject content_scripts using manifest file --- src/manifest/index.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/manifest/index.js b/src/manifest/index.js index 3917f85..227c079 100644 --- a/src/manifest/index.js +++ b/src/manifest/index.js @@ -56,6 +56,13 @@ const manifestInput = { scripts: ['js/background.bundle.js'], '__chrome|opera__persistent': false, }, + + content_scripts: [ + { + matches: ['http://*/*', 'https://*/*'], + js: ['js/contentScript.bundle.js'], + }, + ], }; module.exports = manifestInput;