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()
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)
if err != nil {
// This shouldn't occur
@ -134,8 +135,7 @@ func Init() {
}
target, err := current.Parse(query)
if err != nil {
// invalid relative url
reset()
// Invalid relative url
return
}
URL(target.String())