uidriver/js: Bug fix: IsFocused crashes on go2cpp

This commit is contained in:
Hajime Hoshi 2021-01-03 17:53:21 +09:00
parent fcbde8d124
commit dd15927710

View File

@ -165,6 +165,10 @@ func (u *UserInterface) suspended() bool {
}
func (u *UserInterface) isFocused() bool {
if go2cpp.Truthy() {
return true
}
if !document.Call("hasFocus").Bool() {
return false
}