de periferica: las redirecciones por turbo generan errores de cors
This commit is contained in:
parent
fd5763c0cd
commit
bb485918bc
1 changed files with 1 additions and 5 deletions
|
@ -80,10 +80,6 @@ export default class extends CartBaseController {
|
||||||
|
|
||||||
if (checkoutUrls.data.length > 0) redirectUrl = checkoutUrls.data[0]
|
if (checkoutUrls.data.length > 0) redirectUrl = checkoutUrls.data[0]
|
||||||
|
|
||||||
try {
|
|
||||||
Turbolinks.visit(redirectUrl)
|
|
||||||
} catch {
|
|
||||||
window.location = redirectUrl
|
window.location = redirectUrl
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue