From 60de308c8fde01947ec653e07e828ee4f1831ae4 Mon Sep 17 00:00:00 2001 From: Vlad Stan Date: Mon, 17 Feb 2025 12:07:02 +0200 Subject: [PATCH] fix: logout on safari (#2971) --- lnbits/static/js/index.js | 1 + lnbits/static/js/wallet.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lnbits/static/js/index.js b/lnbits/static/js/index.js index 453d81f9..9c35c87b 100644 --- a/lnbits/static/js/index.js +++ b/lnbits/static/js/index.js @@ -177,6 +177,7 @@ window.app = Vue.createApp({ created() { this.description = SITE_DESCRIPTION this.isUserAuthorized = !!this.$q.cookies.get('is_lnbits_user_authorized') + const _acccess_cookies_for_safari_refresh_do_not_delete = document.cookie if (this.isUserAuthorized) { window.location.href = '/wallet' } diff --git a/lnbits/static/js/wallet.js b/lnbits/static/js/wallet.js index 999575aa..c1ae8e4a 100644 --- a/lnbits/static/js/wallet.js +++ b/lnbits/static/js/wallet.js @@ -801,7 +801,7 @@ window.WalletPageLogic = { }, createdTasks() { this.update.name = this.g.wallet.name - this.receive.units = ['sat', ...window.currencies] + this.receive.units = ['sat', ...(window.currencies || [])] if (this.g.wallet.currency != '') { this.g.fiatTracking = true this.updateFiatBalance(this.g.wallet.currency)