fix: duplicate query param of tifPreviewType on url
This commit is contained in:
parent
e39e8bd907
commit
fa034d54b6
|
@ -37,7 +37,14 @@
|
|||
}
|
||||
|
||||
function goForImage() {
|
||||
var url = window.location.href + "&tifPreviewType=jpg"
|
||||
var url = window.location.href
|
||||
|
||||
if (url.indexOf("tifPreviewType=pdf") != -1) {
|
||||
url = url.replace("tifPreviewType=pdf", "tifPreviewType=jpg");
|
||||
} else {
|
||||
url = url + "&tifPreviewType=jpg";
|
||||
}
|
||||
|
||||
if (url.indexOf("officePreviewType=pdf") != -1) {
|
||||
url = url.replace("officePreviewType=pdf", "officePreviewType=image");
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue