shithub: mycel

Download patch

ref: 3614c592baf9201189b264b61f5aa2e7bb477c68
parent: cd5e12e5de972e95eb3a7170325751fc9c17c01f
author: Philip Silva <philip.silva@protonmail.com>
date: Sun Jan 10 14:34:26 EST 2021

less debug logging

--- a/browser/browser.go
+++ b/browser/browser.go
@@ -1181,17 +1181,13 @@
 		addr = b.URL().Scheme + "://" + b.URL().Host + addr
 	} else if !strings.HasPrefix(addr, "http") {
 		if strings.HasSuffix(b.URL().Path, "/") {
-			log.Printf("A")
 			addr = "/" + b.URL().Path + "/" + addr
 		} else {
-			log.Printf("B")
 			m := strings.LastIndex(b.URL().Path, "/")
 			if m > 0 {
-				log.Printf("B.>")
 				folder := b.URL().Path[0:m]
 				addr = "/" + folder + "/" + addr
 			} else {
-				log.Printf("B.<=")
 				addr = "/" + addr
 			}
 		}