MCPcopy Create free account
hub / github.com/SolarLune/masterplan / Navigate

Method Navigate

browser.go:727–740  ·  view source on GitHub ↗
(url string)

Source from the content-addressed store, hash-verified

725}
726
727func (b *BrowserTab) Navigate(url string) {
728
729 b.CurrentURL = url
730 parsed, err := urlx.Parse(url)
731
732 log.Println("URL Parsed:", url)
733
734 if err == nil {
735 b.Do(chromedp.Navigate(parsed.String()))
736 } else {
737 globals.EventLog.Log("Error navigating to website: [ %s ];\nAre you sure the website URL is correct?\nError: [ %s ]", true, url, err.Error())
738 b.LoadingWebpage.Store(false)
739 }
740}
741
742func (b *BrowserTab) NavigateHome() {
743 b.Navigate(globals.Settings.Get(SettingsBrowserDefaultURL).AsString())

Callers 3

NavigateHomeMethod · 0.95
ReinitContextMethod · 0.80
ConstructMenusFunction · 0.80

Calls 4

DoMethod · 0.95
ParseMethod · 0.80
LogMethod · 0.80
StringMethod · 0.45

Tested by

no test coverage detected