mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 11:44:40 +00:00
fix: icon requesting non-existant URL
This commit is contained in:
@@ -85,7 +85,7 @@ const TabbedContainer: React.FC<TabbedContainerProps> = ({ tabs }) => {
|
|||||||
>
|
>
|
||||||
<div className="flex">
|
<div className="flex">
|
||||||
{tabs.map((tab, index) => (
|
{tabs.map((tab, index) => (
|
||||||
<div className={`absolute w-full transition-opacity duration-300 pb-4 ${activeTab === index ? 'opacity-100' : 'opacity-0'}`}
|
<div key={index} className={`absolute w-full transition-opacity duration-300 pb-4 ${activeTab === index ? 'opacity-100' : 'opacity-0'}`}
|
||||||
style={{left: `${index * 100}%`}}>
|
style={{left: `${index * 100}%`}}>
|
||||||
{tab.content}
|
{tab.content}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -4,6 +4,8 @@ import { lightenAndPaleColor } from './lightenAndPaleColor';
|
|||||||
import ColorLuminance from './ColorLuminance';
|
import ColorLuminance from './ColorLuminance';
|
||||||
import { SettingsState } from '../../../types/storage';
|
import { SettingsState } from '../../../types/storage';
|
||||||
|
|
||||||
|
import icon48 from '../../../resources/icons/icon-48.png';
|
||||||
|
|
||||||
import darkLogo from '../../../resources/icons/betterseqta-light-full.png';
|
import darkLogo from '../../../resources/icons/betterseqta-light-full.png';
|
||||||
import lightLogo from '../../../resources/icons/betterseqta-dark-full.png';
|
import lightLogo from '../../../resources/icons/betterseqta-dark-full.png';
|
||||||
|
|
||||||
@@ -66,7 +68,7 @@ export function updateAllColors(storedSetting: any, newColor = null) {
|
|||||||
|
|
||||||
// Set favicon, if storedSetting is provided
|
// Set favicon, if storedSetting is provided
|
||||||
if (DarkMode !== null) {
|
if (DarkMode !== null) {
|
||||||
(document.querySelector('link[rel*=\'icon\']')! as HTMLLinkElement).href = getChromeURL('icons/icon-48.png');
|
(document.querySelector('link[rel*=\'icon\']')! as HTMLLinkElement).href = getChromeURL(icon48);
|
||||||
}
|
}
|
||||||
|
|
||||||
let alliframes = document.getElementsByTagName('iframe');
|
let alliframes = document.getElementsByTagName('iframe');
|
||||||
|
|||||||
Reference in New Issue
Block a user