mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 12:09:26 +00:00
fix themes
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user