From 141a1a2be846af11421b4a4c1ec8cd8c8b783fd3 Mon Sep 17 00:00:00 2001 From: Tony Kan Date: Sat, 25 May 2024 16:35:27 -0700 Subject: [PATCH] fix: Fix display issue in hazy options after reset button click Modified JavaScript code to remove redundant units (px and %) from displayed values of blur, contrast, saturation, and brightness settings in the hazy options panel. This resolves the issue where values were erroneously appended with additional units (e.g., "15pxpx", "50%%") after clicking the reset button. --- hazy.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hazy.js b/hazy.js index f898122..10c139d 100644 --- a/hazy.js +++ b/hazy.js @@ -652,10 +652,10 @@ document.querySelector(".hazyOptionRow #satu-input").value = 70; document.querySelector(".hazyOptionRow #bright-input").value = 120; - document.querySelector(".hazyOptionRow #blur-value").textContent = "15px"; - document.querySelector(".hazyOptionRow #cont-value").textContent = "50%"; - document.querySelector(".hazyOptionRow #satu-value").textContent = "70%"; - document.querySelector(".hazyOptionRow #bright-value").textContent = "120%"; + document.querySelector(".hazyOptionRow #blur-value").textContent = "15"; + document.querySelector(".hazyOptionRow #cont-value").textContent = "50"; + document.querySelector(".hazyOptionRow #satu-value").textContent = "70"; + document.querySelector(".hazyOptionRow #bright-value").textContent = "120"; localStorage.setItem(value.getAttribute("blur_am"), 8);