10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-12-26 14:23:42 +01:00

Fix missing var

This commit is contained in:
Mickaël Véril 2019-10-30 13:08:45 +01:00
parent a56febec6e
commit aff6512513

View File

@ -23,8 +23,8 @@ draft: false
} }
console.warn(mystr); console.warn(mystr);
} }
queryDic=parseQueryStringToDictionary() var queryDic=parseQueryStringToDictionary()
key=["file","fileBase64"] var key=["file","fileBase64"]
if(key[0] in queryDic){ if(key[0] in queryDic){
var filename=queryDic[key[0]]; var filename=queryDic[key[0]];
var textPromise=getTextFromFileUrlAsync(filename) var textPromise=getTextFromFileUrlAsync(filename)
@ -38,7 +38,7 @@ draft: false
document.getElementById("div_btn").hidden=false; document.getElementById("div_btn").hidden=false;
} else if(key[1] in queryDic){ } else if(key[1] in queryDic){
var base64=queryDic[key[1]]; var base64=queryDic[key[1]];
btn_download=document.getElementById("btn_download"); var btn_download=document.getElementById("btn_download");
btn_download.onclick=function(){ btn_download.onclick=function(){
window.open(String.raw`data:text/plain;base64,${base64}`,"_self") window.open(String.raw`data:text/plain;base64,${base64}`,"_self")
} }