From 444a6a130f485bc565d7f255798738ef7acdc5b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Lima?= Date: Sun, 5 Jan 2025 20:19:53 +0000 Subject: [PATCH] fix: hot reload crash in homepage --- website/inertia/lib/countdown.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/website/inertia/lib/countdown.ts b/website/inertia/lib/countdown.ts index 8a16317..1426e1a 100644 --- a/website/inertia/lib/countdown.ts +++ b/website/inertia/lib/countdown.ts @@ -63,7 +63,5 @@ export function createCountdown({ // tick once so listeners are up-to-date tick() - return { - abort: controller.abort, - } + return { abort: AbortController.prototype.abort.bind(controller) } }