fix: logout on safari (#2971)

This commit is contained in:
Vlad Stan 2025-02-17 12:07:02 +02:00 committed by GitHub
parent 2aebe72df8
commit 60de308c8f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View file

@ -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'
}

View file

@ -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)