From 587f2c2f289bf5e6d7a3f8636c5103afbe1ac671 Mon Sep 17 00:00:00 2001 From: LiaoYijun Date: Fri, 15 Jul 2022 13:37:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20Cookie=20=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/views/mobile_first/ch-pc.php | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/application/views/mobile_first/ch-pc.php b/application/views/mobile_first/ch-pc.php index 8b0a1f0f..1541d8c9 100644 --- a/application/views/mobile_first/ch-pc.php +++ b/application/views/mobile_first/ch-pc.php @@ -333,13 +333,9 @@ Corporate Number: 914503003486045699 console.info('If you continue browsing, you agree to the use of cookies.'); } else { document.getElementById('gotIdArea').style.display = ''; - var gotItBtn = document.getElementById('gotItBtn'); - gotItBtn.addEventListener('click', function (evt) { - if (window.localStorage) { - localStorage.setItem(GOT_IT_KEY, '1'); - } - document.getElementById('gotIdArea').style.display = 'none'; - }); + if (window.localStorage) { + localStorage.setItem(GOT_IT_KEY, '1'); + } }