mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2024-12-25 13:53:48 +01:00
Fix multiple bugs in getViewerURL
This commit is contained in:
parent
64ff9500c6
commit
fe2c0e4c64
@ -4,7 +4,7 @@ class websiteFile{
|
|||||||
}
|
}
|
||||||
|
|
||||||
async getViewerURL(){
|
async getViewerURL(){
|
||||||
params=new URLSearchParams()
|
var params=new URLSearchParams()
|
||||||
var urlbase="/view"
|
var urlbase="/view"
|
||||||
switch (trueTypeOf(this.file)) {
|
switch (trueTypeOf(this.file)) {
|
||||||
case "string":
|
case "string":
|
||||||
@ -16,7 +16,7 @@ class websiteFile{
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
if ([...params].length>0){
|
if ([...params].length>0){
|
||||||
return urlbase+"?"+params.tostring()
|
return urlbase+"?"+params.toString()
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
return urlbase
|
return urlbase
|
||||||
|
Loading…
Reference in New Issue
Block a user