From 485ae01690169d715193769ec475b48153f08881 Mon Sep 17 00:00:00 2001 From: CoderPopCat Date: Fri, 4 Aug 2023 20:45:34 +0400 Subject: [PATCH] . --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 1bbb142..6483c94 100644 --- a/index.html +++ b/index.html @@ -148,10 +148,10 @@

Zero Two

const updateViews = async () => { const response = await fetch('https://cdn.popcat.xyz/update'); const res = await response.json(); - const count = res.count; + const { count } = res; const viewsCount = document.getElementById('views-count'); - viewsCount.innerHTML = count; viewsCount.setAttribute('data-purecounter-end', count); + viewsCount.innerHTML = count; } updateViews();