10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-12-25 05:43:46 +01:00

Fix multiple bugs in getViewerURL

This commit is contained in:
Mickaël Véril 2019-11-02 15:00:11 +01:00
parent 64ff9500c6
commit fe2c0e4c64

View File

@ -4,7 +4,7 @@ class websiteFile{
}
async getViewerURL(){
params=new URLSearchParams()
var params=new URLSearchParams()
var urlbase="/view"
switch (trueTypeOf(this.file)) {
case "string":
@ -16,7 +16,7 @@ class websiteFile{
break
}
if ([...params].length>0){
return urlbase+"?"+params.tostring()
return urlbase+"?"+params.toString()
}
else{
return urlbase