mirror of
https://github.com/ryanamay/pint.git
synced 2024-09-20 01:50:34 +00:00
chore: update favicon, title
This commit is contained in:
parent
50e99a28e4
commit
39aec09580
5 changed files with 6 additions and 12 deletions
|
@ -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")
|
||||
|
|
|
@ -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 |
|
@ -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>
|
||||
|
|
|
@ -48,7 +48,7 @@
|
|||
}
|
||||
],
|
||||
|
||||
"permissions": ["storage", "scripting"],
|
||||
"permissions": ["storage", "scripting", "tabs"],
|
||||
"background": {
|
||||
"service_worker": "background.js"
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue