mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2024-12-25 05:43:46 +01:00
Fix missing var
This commit is contained in:
parent
a56febec6e
commit
aff6512513
@ -23,8 +23,8 @@ draft: false
|
||||
}
|
||||
console.warn(mystr);
|
||||
}
|
||||
queryDic=parseQueryStringToDictionary()
|
||||
key=["file","fileBase64"]
|
||||
var queryDic=parseQueryStringToDictionary()
|
||||
var key=["file","fileBase64"]
|
||||
if(key[0] in queryDic){
|
||||
var filename=queryDic[key[0]];
|
||||
var textPromise=getTextFromFileUrlAsync(filename)
|
||||
@ -38,7 +38,7 @@ draft: false
|
||||
document.getElementById("div_btn").hidden=false;
|
||||
} else if(key[1] in queryDic){
|
||||
var base64=queryDic[key[1]];
|
||||
btn_download=document.getElementById("btn_download");
|
||||
var btn_download=document.getElementById("btn_download");
|
||||
btn_download.onclick=function(){
|
||||
window.open(String.raw`data:text/plain;base64,${base64}`,"_self")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user