From d208e688852d862e1fc3c74c774ba39807c4a346 Mon Sep 17 00:00:00 2001 From: Arc <33088785+arcbtc@users.noreply.github.com> Date: Thu, 21 Mar 2024 11:24:38 +0000 Subject: [PATCH] feat: added home button on error page (#2330) * Added redirect on error page if user id not present as users keep getting stuck --- lnbits/static/js/service-worker.js | 2 +- lnbits/templates/error.html | 35 ++++++++++++++++++++---------- 2 files changed, 25 insertions(+), 12 deletions(-) diff --git a/lnbits/static/js/service-worker.js b/lnbits/static/js/service-worker.js index 9bbd3763d..fd8c433f0 100644 --- a/lnbits/static/js/service-worker.js +++ b/lnbits/static/js/service-worker.js @@ -1,6 +1,6 @@ // update cache version every time there is a new deployment // so the service worker reinitializes the cache -const CACHE_VERSION = 122 +const CACHE_VERSION = 123 const CURRENT_CACHE = `lnbits-${CACHE_VERSION}-` const getApiKey = request => { diff --git a/lnbits/templates/error.html b/lnbits/templates/error.html index ba7f7670b..557969752 100644 --- a/lnbits/templates/error.html +++ b/lnbits/templates/error.html @@ -13,18 +13,28 @@ >