From 3bf97b4d1dd95909fa3ccc37ce52317c2ab162ce Mon Sep 17 00:00:00 2001 From: Til Schmitter Date: Sun, 10 May 2026 23:03:42 +0200 Subject: [PATCH] fix setting 0 corner radius --- copyparty/web/browser.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js index a417389f..1ebd26a4 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -1451,13 +1451,13 @@ ebi('radius').oninput = function () { var r = parseFloat(this.value); clmod(ebi('radius'), 'invalid', this.value.length != 0 && r.length == 0); - if(r == radius) + if(r === radius) return; if(isNaN(r)) r = '' swrite('radius', r); - var setV = r == '' ? '' : (r + 'px'); + var setV = this.value == '' ? '' : (r + 'px'); document.documentElement.style.setProperty('--radius', setV); console.log(setV); }