visit-location defaults to current

main
Daniel Barlow 2022-12-31 17:33:20 +00:00
parent da06309e75
commit 7065b89c92
2 changed files with 2 additions and 1 deletions

View File

@ -24,6 +24,7 @@
})]
{:webview widget
:name name
:location #(widget:get_uri)
:visit (fn [self u] (widget:load_uri u))
:properties props}))

View File

@ -36,7 +36,7 @@
[[:buffer
Buffer.match
#($1.buffer.name)]
[:url #(doto {} (tset $1 $1)) #(do "http://www.example.com")]
[:url #{$1 $1} #($1.buffer:location)]
]
(fn [{:url url :buffer buffer}]
(buffer:visit url)))