feat(app): forward and back buttons
This commit is contained in:
parent
c0a5f85349
commit
58b9b54600
6 changed files with 130 additions and 27 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue