Laravel Vapor - Fix inconsistency of download triggers which suppose to open in a new tab instead of current

This commit is contained in:
Dillon Ngo
2024-10-24 03:19:06 +08:00
parent e83db6a57f
commit 18f071af50
@@ -130,7 +130,9 @@ export default {
response.json().then(response => {
if(!success){return;}
if (response.src) {
window.location.href = response.src;
// window.location.href = response.src;
console.log('download');
window.open(response.src, '_blank');
}
});
}