mirror of
https://github.com/ranaldsgift/KefinTweaks.git
synced 2026-11-05 15:52:47 +01:00
Small fixes for 0.3.2
This commit is contained in:
1 parent
5411065530
commit
a607e2c45c
3 files changed
+3
-3
No files matched your search
+1
-1
@@ -778,7 +778,7 @@
|
||||
}
|
||||
|
||||
// Find watchlist tab by checking if the ContentHtml includes div class=\"sections watchlist\"
|
||||
const watchlistTab = tabs.find(tab => tab.ContentHtml === '<div class="sections watchlist"></div>');
|
||||
const watchlistTab = tabs.find(tab => tab.ContentHtml.includes('sections watchlist'));
|
||||
|
||||
if (watchlistTab) {
|
||||
console.log('[KefinTweaks Startup] Watchlist tab already exists with correct ContentHtml');
|
||||
|
||||
@@ -1188,7 +1188,7 @@ window.KefinTweaksConfig = ${JSON.stringify(config, null, 2)};`;
|
||||
img = document.createElement('div');
|
||||
img.className = 'defaultCardBackground';
|
||||
// give the gradient some color
|
||||
img.style.background = 'url(https://raw.githubusercontent.com/ranaldsgift/KefinTweaks/refs/heads/main/KefinTweaks/pages/images/logo.png), linear-gradient(to bottom, #202020, #101010)';
|
||||
img.style.background = 'url(https://raw.githubusercontent.com/ranaldsgift/KefinTweaks/refs/heads/main/logo.png), linear-gradient(to bottom, #202020, #101010)';
|
||||
img.style.backgroundSize = 'contain';
|
||||
img.style.backgroundPosition = 'center';
|
||||
img.style.backgroundRepeat = 'no-repeat';
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
return new Promise((resolve, reject) => {
|
||||
try {
|
||||
const defaultConfigUrl = window.KefinTweaksConfig?.kefinTweaksRoot
|
||||
? `${window.KefinTweaksConfig.kefinTweaksRoot}kefinTweaks-default-config.js`;
|
||||
? `${window.KefinTweaksConfig.kefinTweaksRoot}/kefinTweaks-default-config.js` : null;
|
||||
|
||||
if (!defaultConfigUrl) {
|
||||
reject(new Error('No default config URL found'));
|
||||
|
||||
Reference in new issue
Block a user