mirror of
https://github.com/makeworld-the-better-one/amfora.git
synced 2024-11-25 05:39:27 +03:00
🐛 Fix deadlock when an about: URL can't be loaded (#277)
This commit is contained in:
parent
18062d6a01
commit
b7f916f1f9
@ -540,14 +540,11 @@ func Reload() {
|
|||||||
func URL(u string) {
|
func URL(u string) {
|
||||||
t := tabs[curTab]
|
t := tabs[curTab]
|
||||||
if strings.HasPrefix(u, "about:") {
|
if strings.HasPrefix(u, "about:") {
|
||||||
if final, ok := handleAbout(t, u); ok {
|
go goURL(t, u)
|
||||||
t.addToHistory(final)
|
} else {
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
go goURL(t, fixUserURL(u))
|
go goURL(t, fixUserURL(u))
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func RenderFromString(str string) {
|
func RenderFromString(str string) {
|
||||||
t := tabs[curTab]
|
t := tabs[curTab]
|
||||||
|
Loading…
Reference in New Issue
Block a user