From 829c1ad3431a4fa803d436c5f74484530533e9cf Mon Sep 17 00:00:00 2001 From: Jeff Date: Sat, 21 Sep 2024 22:39:06 -0400 Subject: [PATCH] Try showing error --- app/routes/_index.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/routes/_index.tsx b/app/routes/_index.tsx index 185f59b..cdbe62c 100644 --- a/app/routes/_index.tsx +++ b/app/routes/_index.tsx @@ -87,6 +87,11 @@ function EnableButton({ onSubscribe }: { onSubscribe: () => void }) { body: JSON.stringify(subscription), }) onSubscribe() + }, + (error) => { + const errorDiv = document.createElement("div") + errorDiv.innerText = "Error thingy" + JSON.stringify(error) + document.appendChild(errorDiv) } ) }