fix variable names

This commit is contained in:
Yannik Schmidt
2021-07-04 18:22:53 +02:00
parent 552515e190
commit a5177d97e7

View File

@@ -73,9 +73,9 @@ function changeSrc(offset){
|| newSrc.indexOf(".jpeg") > -1){
/* get correct size */
if(xWidth || yHeight){
if(xWidth !=null && xHeight != null){
if(xWidth !=null && yHeight != null){
newSrc += "?scalex=" + xWidth + "&scaley=" + yHeight
}else if(xWdith != null){
}else if(xWidth != null){
newSrc += "?x=" + xWidth
}else{
newSrc += "?y=" + yHeight