From 8b4f99c87f9a9227f47e84fb39d7b0f551d6f4dd Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Fri, 31 Mar 2023 04:58:21 +0800 Subject: [PATCH] fix: pageviews not updated immediately --- _javascript/modules/components/pageviews.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_javascript/modules/components/pageviews.js b/_javascript/modules/components/pageviews.js index 99e72ce..790fd95 100644 --- a/_javascript/modules/components/pageviews.js +++ b/_javascript/modules/components/pageviews.js @@ -193,8 +193,8 @@ function fetchProxyPageviews() { type: 'GET', url: PvOpts.getProxyMeta(), dataType: 'jsonp', - jsonpCallback: 'displayPageviews', success: (data) => { + displayPageviews(data); PvStorage.saveProxyCache(JSON.stringify(data)); }, error: (jqXHR, textStatus, errorThrown) => {