From d525c19fac74c97f5c0e4ab960559fc0bc8464a3 Mon Sep 17 00:00:00 2001 From: Alyssa X Date: Wed, 12 Jan 2022 15:06:20 +0100 Subject: [PATCH] CSS file injection on install --- src/background.js | 4 ++++ src/manifest.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/background.js b/src/background.js index a3ae02b..fe01963 100644 --- a/src/background.js +++ b/src/background.js @@ -117,6 +117,10 @@ chrome.runtime.onInstalled.addListener(function (object) { files: [scripts[i]] }); } + chrome.scripting.executeScript({ + target: {tabId: tab.id}, + files: [chrome.manifest.content_scripts[0].css[1]] + }); } // Get all windows diff --git a/src/manifest.json b/src/manifest.json index 4a82f15..16895a1 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -2,7 +2,7 @@ "name": "Omni", "description": "Supercharge Chrome with commands, shortcuts, and more", "offline_enabled": true, - "version": "1.0.6", + "version": "1.0.7", "manifest_version": 3, "action": { "icons": {