diff --git a/public/Initial.js b/public/Initial.js index 974a392..a2b8307 100644 --- a/public/Initial.js +++ b/public/Initial.js @@ -1,3 +1,4 @@ +/*global chrome*/ key = "pintScheme"; userScheme = {}; defaultColorScheme = { @@ -474,8 +475,7 @@ colorSettings.forEach((colorSetting) => { defaultColorScheme[colorSettingPersist], "important" ); - } else; - { + } else { console.log(`Setting ${colorSettingVar}: ${result[colorSetting]}`); document .querySelector(":root") diff --git a/public/background.js b/public/background.js index 4cb8b36..507d613 100644 --- a/public/background.js +++ b/public/background.js @@ -1,3 +1,4 @@ +/*global chrome*/ defaultColorScheme = { __color_accent_emphasis: "#1f6feb", __color_accent_fg: "#58a6ff", @@ -453,14 +454,6 @@ defaultColorScheme = { initialSettings = Object.keys(defaultColorScheme); -const filter = { - url: [ - { - urlMatches: "https://*.github.com/*", - }, - ], -}; - // loop through all the keys in the defaultColorScheme object // and set the value of the key to the value of the key in the defaultColorScheme object chrome.runtime.onInstalled.addListener(() => { @@ -475,6 +468,7 @@ chrome.runtime.onInstalled.addListener(() => { defaultColorScheme[initialSetting] ); }); + chrome.tabs.create({ url: "https://pint.sh/success" }); }); chrome.tabs.onUpdated.addListener((tabId, changeInfo, tab) => { diff --git a/public/favicon.ico b/public/favicon.ico index a11777c..7b91cbc 100644 Binary files a/public/favicon.ico and b/public/favicon.ico differ diff --git a/public/index.html b/public/index.html index aa069f2..a0f6116 100644 --- a/public/index.html +++ b/public/index.html @@ -24,7 +24,7 @@ work correctly both with client-side routing and a non-root public URL. Learn how to configure a non-root public URL by running `npm run build`. --> - React App + Pint for GitHub diff --git a/public/manifest.json b/public/manifest.json index 423407d..b9a499c 100644 --- a/public/manifest.json +++ b/public/manifest.json @@ -48,7 +48,7 @@ } ], - "permissions": ["storage", "scripting"], + "permissions": ["storage", "scripting", "tabs"], "background": { "service_worker": "background.js" },