diff options
| author | Fuwn <[email protected]> | 2026-03-01 16:00:57 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-03-01 16:00:57 -0800 |
| commit | ac9494cde079c052af57484691d4e71a1736ebd8 (patch) | |
| tree | 7c9e9492dce5c473a77a85f475a4fcc65bbcd6fe /src | |
| parent | chore(biome): re-enable noDoubleEquals rule (diff) | |
| download | due.moe-ac9494cde079c052af57484691d4e71a1736ebd8.tar.xz due.moe-ac9494cde079c052af57484691d4e71a1736ebd8.zip | |
chore(biome): re-enable useIterableCallbackReturn rule
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/Utility/html.ts | 12 | ||||
| -rw-r--r-- | src/service-worker.ts | 10 |
2 files changed, 14 insertions, 8 deletions
diff --git a/src/lib/Utility/html.ts b/src/lib/Utility/html.ts index ccdfae8d..7e0f04c6 100644 --- a/src/lib/Utility/html.ts +++ b/src/lib/Utility/html.ts @@ -73,14 +73,20 @@ export const createHeightObserver = (details = true) => { mutationObserver.observe(document.body, { childList: true, subtree: true }); const unsubscribeSettings = settings.subscribe(() => { - observedElements.forEach((element) => applyHeightLimit(element)); + observedElements.forEach((element) => { + applyHeightLimit(element); + }); }); return () => { unsubscribeSettings(); mutationObserver.disconnect(); - resizeObservers.forEach((observer) => observer.disconnect()); - detailObservers.forEach((observer) => observer.disconnect()); + resizeObservers.forEach((observer) => { + observer.disconnect(); + }); + detailObservers.forEach((observer) => { + observer.disconnect(); + }); observedElements.forEach((element) => { element.style.height = 'auto'; diff --git a/src/service-worker.ts b/src/service-worker.ts index 5684af31..5a82c4b0 100644 --- a/src/service-worker.ts +++ b/src/service-worker.ts @@ -119,11 +119,11 @@ sw.addEventListener('push', async (event: PushEvent) => { (resolve as unknown as () => void)(); setTimeout( async () => - await sw.registration - .getNotifications() - .then((notifications) => - notifications.forEach((notification) => notification.close()) - ), + await sw.registration.getNotifications().then((notifications) => + notifications.forEach((notification) => { + notification.close(); + }) + ), 10 ); }); |