mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-01-31 20:04:31 +01:00
Checkout v2: FIx automatic redirect after paid (#4633)
This commit is contained in:
@@ -252,12 +252,12 @@ function initApp() {
|
||||
eventBus.$emit('data-fetched', this.srvModel);
|
||||
|
||||
const self = this;
|
||||
if (this.isPaid && data.redirectAutomatically && data.merchantRefLink) {
|
||||
if (self.isPaid && data.redirectAutomatically && self.storeLink) {
|
||||
setTimeout(function () {
|
||||
if (self.isModal && window.top.location === data.merchantRefLink){
|
||||
if (self.isModal && window.top.location === self.storeLink){
|
||||
self.close();
|
||||
} else {
|
||||
window.top.location = data.merchantRefLink;
|
||||
window.top.location = self.storeLink;
|
||||
}
|
||||
}, 2000);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user