fix themes

This commit is contained in:
Cory LaViska
2025-06-12 13:39:57 -04:00
parent ec99e7e729
commit 1a1409b687

View File

@@ -35,8 +35,6 @@ isPro: true
</wa-comparison>
<script type="module">
import { allDefined } from '/dist/webawesome.js';
let didInit = false;
function init() {
@@ -47,7 +45,7 @@ isPro: true
const afterFrame = document.querySelector('wa-zoomable-frame[slot="after"]');
const beforeFrame = document.querySelector('wa-zoomable-frame[slot="before"]');
async function updateFrames(selectedValue, title, description, isPro) {
function updateFrames(selectedValue, title, description, isPro) {
const baseUrl = '/assets/examples/themes/showcase.html';
const params = new URLSearchParams();
@@ -64,8 +62,6 @@ isPro: true
const queryString = params.toString() ? '?' + params.toString() : '';
const darkQueryString = '?' + darkParams.toString();
await allDefined();
afterFrame.src = baseUrl + queryString;
beforeFrame.src = baseUrl + darkQueryString;
}