You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if(Array.isArray(cachedDecommissioned)){// TODO: temporary code to transition from Array to Object; can delete this in ~2022 and change 'let' above back to 'const'
122
-
cachedDecommissioned=null;
129
+
if(Array.isArray(cachedDecommissioned)){// fix old data format
if(settings.wantDLC&&dlc&&dlc[appID]){// if DLC and enabled
376
-
constbase=dlc[appID].base_appID;
377
-
constownsBase=ownedApps.includes(base);
378
-
html+=getIconHTML(settings.dlcColor,`${subject} (${appID}) is downloadable content for an ${ownsBase ? `` : `un`}owned base game (${base})`,dlclcs,settings.dlcIcon);// ⇩
379
-
}
382
+
if(settings.wantDLC&&dlc&&dlc[appID]){// if DLC and enabled
383
+
constbase=dlc[appID].base_appID;
384
+
constownsBase=Boolean(ownedApps[base]);
385
+
html+=getIconHTML(settings.dlcColor,`${subject} (${appID}) is downloadable content for an ${ownsBase ? `` : `un`}owned base game (${base})`,dlclcs,settings.dlcIcon);// ⇩
386
+
}
380
387
381
-
if(settings.wantDecommissioned&&decommissioned&&decommissioned[appID]){// if decommissioned and enabled
382
-
constapp=decommissioned[appID];
383
-
html+=getIconHTML(settings.decommissionedColor,`The ${app.type} '${app.name.replace(/"|'/g,``)}' (${appID}) is ${app.category.toLowerCase()} and has only ${app.count} confirmed owner${app.count===1 ? `` : `s`} on Steam`,dlcs,settings.decommissionedIcon,`https://steam-tracker.com/app/${appID}/`);// 🗑
384
-
}
388
+
if(settings.wantDecommissioned&&decommissioned&&decommissioned[appID]){// if decommissioned and enabled
389
+
constapp=decommissioned[appID];
390
+
html+=getIconHTML(settings.decommissionedColor,`The ${app.type} '${app.name.replace(/"|'/g,``)}' (${appID}) is ${app.category.toLowerCase()} and has only ${app.count} confirmed owner${app.count===1 ? `` : `s`} on Steam`,dlcs,settings.decommissionedIcon,`https://steam-tracker.com/app/${appID}/`);// 🗑
391
+
}
385
392
386
-
if(settings.wantLimited&&limited&&limited[appID]){// if limited and enabled
387
-
html+=getIconHTML(settings.limitedColor,`Game (${appID}) has profile features limited`,llcs,settings.limitedIcon);// ⚙
388
-
}
393
+
if(settings.wantLimited&&limited&&limited[appID]){// if limited and enabled
394
+
html+=getIconHTML(settings.limitedColor,`Game (${appID}) has profile features limited`,llcs,settings.limitedIcon);// ⚙
395
+
}
389
396
390
-
if(settings.wantCards&&cards&&cards[appID]&&cards[appID].cards&&cards[appID].cards>0){// if has cards and enabled
if(settings.wantBundles&&bundles&&bundles[appID]&&bundles[appID].bundles&&bundles[appID].bundles>0){// if bundled and enabled
395
-
html+=getIconHTML(settings.bundleColor,`Game (${appID}) has been in ${bundles[appID].bundles} bundle${bundles[appID].bundles===1 ? `` : `s`}`,blcs,settings.bundleIcon,`https://barter.vg/steam/app/${appID}/#bundles`);
396
-
}
401
+
if(settings.wantBundles&&bundles&&bundles[appID]&&bundles[appID].bundles&&bundles[appID].bundles>0){// if bundled and enabled
402
+
html+=getIconHTML(settings.bundleColor,`Game (${appID}) has been in ${bundles[appID].bundles} bundle${bundles[appID].bundles===1 ? `` : `s`}`,blcs,settings.bundleIcon,`https://barter.vg/steam/app/${appID}/#bundles`);
403
+
}
397
404
398
-
if(settings.prefix){
399
-
$(elem).before(getBoxNode(html,appID));
400
-
}else{
401
-
$(elem).after(getBoxNode(html,appID));
402
-
}
405
+
if(settings.prefix){
406
+
$(elem).before(getBoxNode(html,appID));
407
+
}else{
408
+
$(elem).after(getBoxNode(html,appID));
409
+
}
403
410
404
-
$(elem).parent().css(`overflow`,`visible`);
405
-
},0);
411
+
$(elem).parent().css(`overflow`,`visible`);
406
412
}
407
413
408
414
functiondoSub(elem,ownedPackages,lcs){
@@ -422,7 +428,7 @@ function doSub(elem, ownedPackages, lcs) {
if(userdata.rgOwnedApps.length===0&&userdata.rgOwnedPackages.length===0&&userdata.rgIgnoredApps.length===0&&userdata.rgWishlist.length===0&&userdata.rgFollowedApps.length===0){// not logged in
568
+
if(userdata.rgOwnedApps.length===0&&userdata.rgOwnedPackages.length===0){// not logged in
555
569
if(!cachedJson){
556
570
console.log(`[Steam Web Integration] No cached information available. Please login to Steam to fix this.`);
0 commit comments