summaryrefslogtreecommitdiffhomepage
path: root/packages/desktop
diff options
context:
space:
mode:
authoradamelmore <[email protected]>2026-01-26 22:58:29 -0600
committeradamelmore <[email protected]>2026-01-27 06:29:18 -0600
commit58b9b54600f12ba4ec1d80a2d1b7dee3879a0479 (patch)
tree797755369dc2d81ff04c32f0d0b4780e2db84d03 /packages/desktop
parentc0a5f853497de6778f1430b691e393caa54c59a7 (diff)
downloadopencode-58b9b54600f12ba4ec1d80a2d1b7dee3879a0479.tar.gz
opencode-58b9b54600f12ba4ec1d80a2d1b7dee3879a0479.zip
feat(app): forward and back buttons
Diffstat (limited to 'packages/desktop')
-rw-r--r--packages/desktop/src/index.tsx8
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/desktop/src/index.tsx b/packages/desktop/src/index.tsx
index fe9e3f92e..b19adfeda 100644
--- a/packages/desktop/src/index.tsx
+++ b/packages/desktop/src/index.tsx
@@ -80,6 +80,14 @@ const createPlatform = (password: Accessor<string | null>): Platform => ({
void shellOpen(url).catch(() => undefined)
},
+ back() {
+ window.history.back()
+ },
+
+ forward() {
+ window.history.forward()
+ },
+
storage: (() => {
type StoreLike = {
get(key: string): Promise<string | null | undefined>