ref: 4c43991753041448188bf93aed87b5f5434fa316
parent: c70619eff54eb25a853b850ac7ccb2f447658519
author: Philip Silva <[email protected]>
date: Sun Sep 12 03:29:28 EDT 2021
LoadUrl for init
--- a/browser/browser.go
+++ b/browser/browser.go
@@ -1421,14 +1421,8 @@
}
b.History.Push(u, 0)
- buf, ct, err := b.get(u, true)
- if err != nil {
- log.Fatalf("get: %v", err)
- }
- b.Website.ContentType = ct
- htm := string(ct.Utf8(buf))
-
browser = b
+ b.Website.UI = &duit.Label{}
style.SetFetcher(b)
dui = _dui
dui.Background, err = dui.Display.AllocImage(image.Rect(0, 0, 10, 10), draw.ARGB32, true, 0x00000000)
@@ -1436,6 +1430,7 @@
log.Fatalf("%v", err)
}
display = dui.Display
+ b.LoadUrl(u)
if ExperimentalJsInsecure {
fs.Client = &http.Client{}
@@ -1442,8 +1437,6 @@
fs.Fetcher = browser
}
go fs.Srv9p()
-
- b.Website.layout(b, htm, InitialLayout)
return
}