Skip to content

Commit

Permalink
fix: Reduce expire time for alpha version
Browse files Browse the repository at this point in the history
  • Loading branch information
icleitoncosta committed Jul 13, 2024
1 parent 1f0a9da commit 2e6b354
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ async function updateJsonFile() {
const released: Date = new Date();
let expire: Date = new Date();
// As WhatsApp Web is no longer expiring versions, we have fixed a date based on the expiration time of previous versions
expire.setMonth(expire.getMonth() + 3);
expire.setMonth(expire.getMonth() + 2);

const html = getPageContent(versionNumber);
const matches = html.match(/"hard_expire_time"\s+data-time="([\d.]+)"/);
Expand Down

0 comments on commit 2e6b354

Please sign in to comment.