mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 04:09:12 +00:00
update
This commit is contained in:
@@ -55,8 +55,6 @@ isPro: true
|
||||
const themePicker = document.getElementById('theme-picker');
|
||||
const afterFrame = document.querySelector('wa-zoomable-frame[slot="after"]');
|
||||
const beforeFrame = document.querySelector('wa-zoomable-frame[slot="before"]');
|
||||
|
||||
// Get header elements that are now in the same document
|
||||
const nameElement = document.querySelector('[data-theme-name]');
|
||||
const descriptionElement = document.querySelector('[data-theme-description]');
|
||||
const freeBadge = document.querySelector('[data-free-badge]');
|
||||
@@ -82,16 +80,6 @@ isPro: true
|
||||
}
|
||||
});
|
||||
|
||||
// Set dark mode on before frame only
|
||||
if (beforeFrame.contentDocument) {
|
||||
beforeFrame.contentDocument.documentElement.classList.add('wa-dark');
|
||||
}
|
||||
|
||||
// Ensure after frame is light mode
|
||||
if (afterFrame.contentDocument) {
|
||||
afterFrame.contentDocument.documentElement.classList.remove('wa-dark');
|
||||
}
|
||||
|
||||
// Update header elements directly
|
||||
if (nameElement && title) {
|
||||
nameElement.textContent = title;
|
||||
|
||||
Reference in New Issue
Block a user