From 43baca27ab9c0e9f6f49f96db543917c97b8ddc3 Mon Sep 17 00:00:00 2001 From: Justin Hawkins Date: Thu, 30 Sep 2021 17:45:25 +0930 Subject: [PATCH] Use the configuration for popup dimensions --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index fe260e5..b4d7b68 100644 --- a/main.go +++ b/main.go @@ -102,7 +102,7 @@ func VersionHandler(w http.ResponseWriter, r *http.Request) { func HomeHandler(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusOK) - bookmarkletURL := fmt.Sprintf("javascript:(function(f,s,n,o){window.open(f+encodeURIComponent(s),n,o)}('%s/fetch?url=',window.location,'yourform','width=500,height=500'));", conf.Server.Address) + bookmarkletURL := fmt.Sprintf("javascript:(function(f,s,n,o){window.open(f+encodeURIComponent(s),n,o)}('%s/fetch?url=',window.location,'yourform','width=%d,height=%d'));", conf.Server.Address, conf.UI.PopupWidth, conf.UI.PopupHeight) t, err := template.ParseFS(webFS, "web/layout.tmpl", "web/index.html") if err != nil {