Skip to content

Commit 810b1ce

Browse files
committed
chore: update stars and download count dynamically in extension manager
1 parent af22336 commit 810b1ce

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/extensibility/ExtensionManager.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ define(function (require, exports, module) {
246246
}
247247

248248
function _patchDownloadCounts() {
249-
const registryJson = localStorage.getItem(EXTENSION_REGISTRY_LOCAL_STORAGE_KEY);
249+
let registryJson = localStorage.getItem(EXTENSION_REGISTRY_LOCAL_STORAGE_KEY);
250250
if(!registryJson){
251251
return;
252252
}
@@ -255,6 +255,7 @@ define(function (require, exports, module) {
255255
dataType: "json",
256256
cache: false
257257
}).done(function (popularity) {
258+
registryJson = localStorage.getItem(EXTENSION_REGISTRY_LOCAL_STORAGE_KEY);
258259
let registry = JSON.parse(registryJson);
259260
for(let key of Object.keys(popularity)){
260261
if(registry[key]) {

0 commit comments

Comments
 (0)