switched bundle host field to url to retain http
This commit is contained in:
parent
7f36e99443
commit
2f1547a912
3 changed files with 12 additions and 13 deletions
|
|
@ -9,7 +9,7 @@ import (
|
|||
|
||||
// BundleEntry is one tab in a bundle JSON file.
|
||||
type BundleEntry struct {
|
||||
Host string `json:"host"`
|
||||
URL string `json:"url"`
|
||||
Title string `json:"title"`
|
||||
Icon string `json:"icon"`
|
||||
IconW int `json:"icon_w,omitempty"`
|
||||
|
|
@ -25,7 +25,7 @@ type Bundle struct {
|
|||
// buildEntry creates a BundleEntry for a host, converting its icon if available.
|
||||
func buildEntry(host HostRow, iconsDir string, logWriter *LogWriter, stats *Stats) BundleEntry {
|
||||
entry := BundleEntry{
|
||||
Host: host.Hostname,
|
||||
URL: host.Protocol + "://" + host.Hostname,
|
||||
Title: host.HtmlTitle,
|
||||
Icon: "",
|
||||
IframeOk: host.IframeAllowed,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue