mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 11:44:40 +00:00
change style filename
This commit is contained in:
@@ -153,10 +153,10 @@ export const UpdateImageData = (imageData2: { id: string; base64: string }) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
function applyCustomCSS(customCSS: string) {
|
function applyCustomCSS(customCSS: string) {
|
||||||
let styleElement = document.getElementById('theme-preview-styles');
|
let styleElement = document.getElementById('custom-theme');
|
||||||
if (!styleElement) {
|
if (!styleElement) {
|
||||||
styleElement = document.createElement('style');
|
styleElement = document.createElement('style');
|
||||||
styleElement.id = 'theme-preview-styles';
|
styleElement.id = 'custom-theme';
|
||||||
document.head.appendChild(styleElement);
|
document.head.appendChild(styleElement);
|
||||||
}
|
}
|
||||||
styleElement.textContent = customCSS;
|
styleElement.textContent = customCSS;
|
||||||
@@ -212,7 +212,7 @@ const applyTheme = async (theme: CustomTheme) => {
|
|||||||
|
|
||||||
const removeTheme = (theme: CustomTheme) => {
|
const removeTheme = (theme: CustomTheme) => {
|
||||||
// Remove custom CSS
|
// Remove custom CSS
|
||||||
const styleElement = document.getElementById('theme-preview-styles');
|
const styleElement = document.getElementById('custom-theme');
|
||||||
if (styleElement) {
|
if (styleElement) {
|
||||||
styleElement.parentNode?.removeChild(styleElement);
|
styleElement.parentNode?.removeChild(styleElement);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user