From 72367c73af52c42ba6db815e510e71cbd5b5069f Mon Sep 17 00:00:00 2001 From: Aki Date: Thu, 6 Aug 2020 20:52:08 +0200 Subject: Changed viewhtml to handle links with browse command --- viewhtml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'viewhtml') 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 } } -- cgit v1.1