Skip to content

Commit

Permalink
fix #1727
Browse files Browse the repository at this point in the history
  • Loading branch information
yagebu committed Dec 30, 2023
1 parent 068c839 commit 915c5db
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/src/stores/mtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ export const ledger_mtime: Readable<bigint> = ledger_mtime_writable;
* Set the mtime from the given string value.
*/
export function set_mtime(text: string): void {
const new_value = BigInt(text);
const new_value = text.startsWith("X")
? // the timestamp is replaced by a sequence of `X` in incognito mode.
BigInt(Date.now())
: BigInt(text);
ledger_mtime_writable.update((v) => (new_value > v ? new_value : v));
}

Expand Down

0 comments on commit 915c5db

Please sign in to comment.