From 2f0cac69b0640e53d8027078ca2688c4c38d4e4a Mon Sep 17 00:00:00 2001 From: Weiyu <134707157+weiyudev@users.noreply.github.com> Date: Thu, 13 Jun 2024 12:38:49 +0800 Subject: [PATCH] Fix avatar counter 2 issue [LCEdit Compare] --- compare/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compare/index.js b/compare/index.js index 80127c2..3c379c5 100644 --- a/compare/index.js +++ b/compare/index.js @@ -111,8 +111,8 @@ class LivecountseditInterface { } }, this.setAvatar2 = function () { - if (!document.getElementById("options.counter.avatar.file").files.length) { - if (!document.getElementById("options.counter.avatar.url").value) return; + if (!document.getElementById("options.counter.avatar.file2").files.length) { + if (!document.getElementById("options.counter.avatar.url2").value) return; else document.getElementById("yt_profile_vs2").src = document.getElementById("options.counter.avatar.url2").value } else { document.getElementById("yt_profile_vs2").src = URL.createObjectURL(document.getElementById("options.counter.avatar.file2").files[0])