mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-13 15:14:40 +00:00
15 lines
539 B
TypeScript
15 lines
539 B
TypeScript
export const imageData: Record<string, { url: string; variableName: string }> = {};
|
|
|
|
export function applyCustomCSS(customCSS: string) {
|
|
let styleElement = document.getElementById('custom-theme');
|
|
if (!styleElement) {
|
|
styleElement = document.createElement('style');
|
|
styleElement.id = 'custom-theme';
|
|
document.head.appendChild(styleElement);
|
|
}
|
|
styleElement.textContent = customCSS;
|
|
}
|
|
|
|
export function removeImageFromDocument(variableName: string) {
|
|
document.documentElement.style.removeProperty('--' + variableName);
|
|
} |