mirror of
https://github.com/Matysh/houseplan-card
synced 2026-10-05 14:19:04 +00:00
perf: keep Zigbee route overlay within bundle guard
Issue: #457 User-Visible: no
This commit is contained in:
@@ -4,7 +4,7 @@ const { page, browser } = await launch();
|
||||
const result = await page.evaluate(async () => {
|
||||
const card = window.__card;
|
||||
const root = () => card.shadowRoot || card.renderRoot;
|
||||
const wait = (predicate, label, timeout = 3000) => new Promise((resolve, reject) => {
|
||||
const wait = (predicate, label, timeout = 5000) => new Promise((resolve, reject) => {
|
||||
const started = performance.now();
|
||||
const tick = () => {
|
||||
if (predicate()) return resolve();
|
||||
|
||||
Reference in New Issue
Block a user