diff --git a/index.html b/index.html index 438024d2..07113173 100644 --- a/index.html +++ b/index.html @@ -16824,7 +16824,7 @@ window.onload = function() { if (newWidth > 1000) { newWidth = 1000; } // If we are on a desktop and the new height is greater than 500, set it to 500 if (window.innerWidth > 1000 && newHeight > 500) { newHeight = 500; } - if (settings.pixelsize && settings.pixelsize.slice(-1) === "w") { + if (settings.pixelsize && settings.pixelsize.toString().slice(-1) === "w") { // resizeCanvas(window.innerHeight/1.5,window.innerWidth-10,pixelSize); newHeight = window.innerHeight/1.5; newWidth = window.innerWidth-10;