this might work

This commit is contained in:
Chris Wanstrath 2025-09-29 18:38:29 -07:00
parent 487aa4ce7e
commit ee38bcbf10
2 changed files with 2 additions and 2 deletions

View File

@ -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)`
}
}
}

View File

@ -17,7 +17,7 @@ export const browserCommands: Record<string, () => any> = {
resize()
autoScroll()
},
reload: () => (window as any).location = window.location,
reload: () => window.location.reload(),
session: () => sessionID,
}