mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2024-08-26 06:01:49 +02:00
Fix an error when file is base64
This commit is contained in:
parent
d8c8458d55
commit
a4f74b7f89
@ -39,8 +39,8 @@ draft: false
|
||||
} else if(key[1] in queryDic){
|
||||
var base64=queryDic[key[1]];
|
||||
btn_download=document.getElementById("btn_download");
|
||||
btn_download.onclick=function(){
|
||||
window.open(String.raw`data:application/pdf;base64,${Base64}`,"_self")
|
||||
btn.btn_download.onclick=function(){
|
||||
window.open(String.raw`data:text/plain;base64,${base64}`,"_self")
|
||||
}
|
||||
document.getElementById('fileTitle').hudden=true
|
||||
document.getElementById('fileContent').innerText=atob(base64)
|
||||
|
Loading…
Reference in New Issue
Block a user