mirror of
https://github.com/driftywinds/driftywinds.github.io.git
synced 2025-12-20 11:23:56 +00:00
Clean up
This commit is contained in:
@@ -193,7 +193,6 @@ main((json) => {
|
|||||||
//
|
//
|
||||||
// Entitlements
|
// Entitlements
|
||||||
const entitlementsContainer = document.getElementById("entitlements");
|
const entitlementsContainer = document.getElementById("entitlements");
|
||||||
console.log(app.appPermissions?.entitlements);
|
|
||||||
if (!app.appPermissions?.entitlements?.length) entitlementsContainer.remove();
|
if (!app.appPermissions?.entitlements?.length) entitlementsContainer.remove();
|
||||||
app.appPermissions?.entitlements.forEach(entitlementPermission => {
|
app.appPermissions?.entitlements.forEach(entitlementPermission => {
|
||||||
const permission = entitlements[entitlementPermission.name];
|
const permission = entitlements[entitlementPermission.name];
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ export function formatVersionDate(arg) {
|
|||||||
const msPerDay = 60 * 60 * 24 * 1000;
|
const msPerDay = 60 * 60 * 24 * 1000;
|
||||||
const msDifference = today.valueOf() - versionDate.valueOf();
|
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())
|
if (msDifference <= msPerDay && today.getDate() == versionDate.getDate())
|
||||||
dateString = "Today";
|
dateString = "Today";
|
||||||
else if (msDifference <= msPerDay * 2)
|
else if (msDifference <= msPerDay * 2)
|
||||||
|
|||||||
@@ -19,7 +19,6 @@ insertNavigationBar("Version History");
|
|||||||
|
|
||||||
main((json) => {
|
main((json) => {
|
||||||
const app = getAppWithBundleId(bundleId);
|
const app = getAppWithBundleId(bundleId);
|
||||||
console.log(app.versions);
|
|
||||||
|
|
||||||
// Set tab title
|
// Set tab title
|
||||||
document.title = `Version History - ${app.name}`;
|
document.title = `Version History - ${app.name}`;
|
||||||
|
|||||||
Reference in New Issue
Block a user