chore: update favicon, title

This commit is contained in:
fuwaa 2022-07-16 12:41:36 +08:00
parent 50e99a28e4
commit 39aec09580
No known key found for this signature in database
GPG key ID: 2E4F5DC11DE1D654
5 changed files with 6 additions and 12 deletions

View file

@ -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")

View file

@ -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) => {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View file

@ -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`.
-->
<title>React App</title>
<title>Pint for GitHub</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>

View file

@ -48,7 +48,7 @@
}
],
"permissions": ["storage", "scripting"],
"permissions": ["storage", "scripting", "tabs"],
"background": {
"service_worker": "background.js"
},