mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-22 05:53:58 +00:00
create alt button to open pdf in new tab
This commit is contained in:
@@ -50,6 +50,7 @@
|
||||
this.isLoading = false;
|
||||
},
|
||||
openBase64NewTab() {
|
||||
console.log(this.src);
|
||||
var blob = this.base64toBlob(this.src);
|
||||
if (window.navigator && window.navigator.msSaveOrOpenBlob) {
|
||||
window.navigator.msSaveOrOpenBlob(blob, "pdfBase64.pdf");
|
||||
|
||||
Reference in New Issue
Block a user