1
0
mirror of https://github.com/makew0rld/amfora.git synced 2024-12-04 14:46:29 -05:00

🎨 Fix comment style and remove reset()

This commit is contained in:
makeworld 2020-08-18 19:48:10 -04:00
parent ef0675fc0b
commit f22ee7d76c

View File

@ -126,7 +126,8 @@ func Init() {
reset() reset()
return return
} }
if query[0] == '.' && tabs[tab].hasContent() { // relative url if query[0] == '.' && tabs[tab].hasContent() {
// Relative url
current, err := url.Parse(tabs[tab].page.Url) current, err := url.Parse(tabs[tab].page.Url)
if err != nil { if err != nil {
// This shouldn't occur // This shouldn't occur
@ -134,8 +135,7 @@ func Init() {
} }
target, err := current.Parse(query) target, err := current.Parse(query)
if err != nil { if err != nil {
// invalid relative url // Invalid relative url
reset()
return return
} }
URL(target.String()) URL(target.String())