From c85d8fefc0b46fc74dd9d490c44fd65fe9d6fee1 Mon Sep 17 00:00:00 2001 From: O-01-67 <68935009+O-01-67@users.noreply.github.com> Date: Sun, 24 Jul 2022 17:40:26 -0400 Subject: [PATCH] clarify comment numbers --- mods/adjustablepixelsize.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mods/adjustablepixelsize.js b/mods/adjustablepixelsize.js index 17b5a655..daf039cf 100644 --- a/mods/adjustablepixelsize.js +++ b/mods/adjustablepixelsize.js @@ -7,7 +7,8 @@ urlParams = new URLSearchParams(window.location.search); if(urlParams.get('pixelSize') != null) { //null check pixelSize = urlParams.get('pixelSize') if(isNaN(pixelSize) || pixelSize === "" || pixelSize === null) { //NaN check - // Vanilla code: If the screen size is under 768px, set pixelSize to 5, otherwise 6 + //Vanilla code + //[Vanilla comment] If the screen size is under 768px, set pixelSize to 5, otherwise 6 if (window.innerWidth < 700) { pixelSize = 5; } else { @@ -17,7 +18,8 @@ if(urlParams.get('pixelSize') != null) { //null check pixelSize = parseFloat(pixelSize) pixelSize = Math.min(194.73749999999999,Math.max(pixelSize,0.05)) } else { - // Vanilla code: If the screen size is under 768px, set pixelSize to 5, otherwise 6 + //Vanilla code + //[Vanilla comment] If the screen size is under 768px, set pixelSize to 5, otherwise 6 if (window.innerWidth < 700) { pixelSize = 5; } else {