fix: pageviews not updated immediately

This commit is contained in:
Cotes Chung 2023-03-31 04:58:21 +08:00
parent 6f97636fb9
commit 8b4f99c87f
No known key found for this signature in database
GPG key ID: 0D9E54843167A808

View file

@ -193,8 +193,8 @@ function fetchProxyPageviews() {
type: 'GET', type: 'GET',
url: PvOpts.getProxyMeta(), url: PvOpts.getProxyMeta(),
dataType: 'jsonp', dataType: 'jsonp',
jsonpCallback: 'displayPageviews',
success: (data) => { success: (data) => {
displayPageviews(data);
PvStorage.saveProxyCache(JSON.stringify(data)); PvStorage.saveProxyCache(JSON.stringify(data));
}, },
error: (jqXHR, textStatus, errorThrown) => { error: (jqXHR, textStatus, errorThrown) => {