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

🐛 Fix deadlock when an about: URL can't be loaded (#277)

This commit is contained in:
mooff 2021-12-08 22:57:28 +00:00 committed by GitHub
parent 18062d6a01
commit b7f916f1f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -540,14 +540,11 @@ func Reload() {
func URL(u string) {
t := tabs[curTab]
if strings.HasPrefix(u, "about:") {
if final, ok := handleAbout(t, u); ok {
t.addToHistory(final)
}
return
}
go goURL(t, u)
} else {
go goURL(t, fixUserURL(u))
}
}
func RenderFromString(str string) {
t := tabs[curTab]