fix: logout on safari (#2971)
This commit is contained in:
@@ -177,6 +177,7 @@ window.app = Vue.createApp({
|
|||||||
created() {
|
created() {
|
||||||
this.description = SITE_DESCRIPTION
|
this.description = SITE_DESCRIPTION
|
||||||
this.isUserAuthorized = !!this.$q.cookies.get('is_lnbits_user_authorized')
|
this.isUserAuthorized = !!this.$q.cookies.get('is_lnbits_user_authorized')
|
||||||
|
const _acccess_cookies_for_safari_refresh_do_not_delete = document.cookie
|
||||||
if (this.isUserAuthorized) {
|
if (this.isUserAuthorized) {
|
||||||
window.location.href = '/wallet'
|
window.location.href = '/wallet'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -801,7 +801,7 @@ window.WalletPageLogic = {
|
|||||||
},
|
},
|
||||||
createdTasks() {
|
createdTasks() {
|
||||||
this.update.name = this.g.wallet.name
|
this.update.name = this.g.wallet.name
|
||||||
this.receive.units = ['sat', ...window.currencies]
|
this.receive.units = ['sat', ...(window.currencies || [])]
|
||||||
if (this.g.wallet.currency != '') {
|
if (this.g.wallet.currency != '') {
|
||||||
this.g.fiatTracking = true
|
this.g.fiatTracking = true
|
||||||
this.updateFiatBalance(this.g.wallet.currency)
|
this.updateFiatBalance(this.g.wallet.currency)
|
||||||
|
|||||||
Reference in New Issue
Block a user