mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
Laravel Vapor - Fix inconsistency of download triggers which suppose to open in a new tab instead of current
This commit is contained in:
+3
-1
@@ -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');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user