From ee38bcbf10f29a93a7f9389ce8faa581acc4436d Mon Sep 17 00:00:00 2001 From: Chris Wanstrath <2+defunkt@users.noreply.github.com> Date: Mon, 29 Sep 2025 18:38:29 -0700 Subject: [PATCH] this might work --- app/nose/bin/update.ts | 2 +- app/src/js/commands.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/nose/bin/update.ts b/app/nose/bin/update.ts index 23715ea..65d5cfd 100644 --- a/app/nose/bin/update.ts +++ b/app/nose/bin/update.ts @@ -16,7 +16,7 @@ export default async function () { setTimeout(() => process.exit(), 1000) return { text: "Reloading in 3 seconds...", - script: `setTimeout(() => (window as any).location = window.location, 3000)` + script: `setTimeout(() => window.location.reload(), 3000)` } } } \ No newline at end of file diff --git a/app/src/js/commands.ts b/app/src/js/commands.ts index b9a2da0..a2bae55 100644 --- a/app/src/js/commands.ts +++ b/app/src/js/commands.ts @@ -17,7 +17,7 @@ export const browserCommands: Record any> = { resize() autoScroll() }, - reload: () => (window as any).location = window.location, + reload: () => window.location.reload(), session: () => sessionID, }