summaryrefslogtreecommitdiff
path: root/viewhtml
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2020-08-06 20:52:08 +0200
committerAki <please@ignore.pl>2020-08-06 20:52:08 +0200
commit72367c73af52c42ba6db815e510e71cbd5b5069f (patch)
tree795fb41dcb5285d72605c463493a5864c2dbb703 /viewhtml
parented4063b53852cfd186970cf0ceb2379053720273 (diff)
downloadbrowse-72367c73af52c42ba6db815e510e71cbd5b5069f.zip
browse-72367c73af52c42ba6db815e510e71cbd5b5069f.tar.gz
browse-72367c73af52c42ba6db815e510e71cbd5b5069f.tar.bz2
Changed viewhtml to handle links with browse command
Diffstat (limited to 'viewhtml')
-rwxr-xr-xviewhtml5
1 files changed, 2 insertions, 3 deletions
diff --git a/viewhtml b/viewhtml
index cdb5ee3..7303da2 100755
--- a/viewhtml
+++ b/viewhtml
@@ -46,11 +46,10 @@ proc click {w x y} {
# TODO: Handle external base address nicely
# TODO: Handle /-prefixed addresses
- # TODO: Use browse script instead of viewhtml directly
if {0 == [regexp {^https?.*} $address]} {
- exec "./viewhtml" "$baseAddress/$address" $baseAddress
+ exec "./browse" "$baseAddress$address"
} else {
- exec "./viewhtml" $address $address
+ exec "./browse" $address
}
}