From 326de11f384fb20d51fbbc15484f300108be493f Mon Sep 17 00:00:00 2001 From: foxster-mp4 Date: Fri, 18 Aug 2023 10:34:28 -0700 Subject: [PATCH] Clean up --- js/app.js | 1 - js/utilities.js | 2 +- js/versionHistory.js | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/js/app.js b/js/app.js index f591123..f585cb0 100644 --- a/js/app.js +++ b/js/app.js @@ -193,7 +193,6 @@ main((json) => { // // Entitlements const entitlementsContainer = document.getElementById("entitlements"); - console.log(app.appPermissions?.entitlements); if (!app.appPermissions?.entitlements?.length) entitlementsContainer.remove(); app.appPermissions?.entitlements.forEach(entitlementPermission => { const permission = entitlements[entitlementPermission.name]; diff --git a/js/utilities.js b/js/utilities.js index c929520..7a2ae1d 100644 --- a/js/utilities.js +++ b/js/utilities.js @@ -18,7 +18,7 @@ export function formatVersionDate(arg) { const msPerDay = 60 * 60 * 24 * 1000; const msDifference = today.valueOf() - versionDate.valueOf(); - let dateString = versionDate.valueOf() ? `${month} ${date}, ${versionDate.getFullYear()}` : app.versionDate.split("T")[0]; + let dateString = versionDate.valueOf() ? `${month} ${date}, ${versionDate.getFullYear()}` : arg.split("T")[0]; if (msDifference <= msPerDay && today.getDate() == versionDate.getDate()) dateString = "Today"; else if (msDifference <= msPerDay * 2) diff --git a/js/versionHistory.js b/js/versionHistory.js index 03b60d7..d3a67ce 100644 --- a/js/versionHistory.js +++ b/js/versionHistory.js @@ -19,7 +19,6 @@ insertNavigationBar("Version History"); main((json) => { const app = getAppWithBundleId(bundleId); - console.log(app.versions); // Set tab title document.title = `Version History - ${app.name}`;