diff options
author | Aki <please@ignore.pl> | 2020-08-06 20:52:08 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2020-08-06 20:52:08 +0200 |
commit | 72367c73af52c42ba6db815e510e71cbd5b5069f (patch) | |
tree | 795fb41dcb5285d72605c463493a5864c2dbb703 /viewhtml | |
parent | ed4063b53852cfd186970cf0ceb2379053720273 (diff) | |
download | browse-72367c73af52c42ba6db815e510e71cbd5b5069f.zip browse-72367c73af52c42ba6db815e510e71cbd5b5069f.tar.gz browse-72367c73af52c42ba6db815e510e71cbd5b5069f.tar.bz2 |
Changed viewhtml to handle links with browse command
Diffstat (limited to 'viewhtml')
-rwxr-xr-x | viewhtml | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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 } } |