internal/uidriver/js: Update the error message

Updates #1604
This commit is contained in:
Hajime Hoshi 2021-04-20 12:47:23 +09:00
parent 191cc667e1
commit 74018348c0

View File

@ -397,7 +397,7 @@ func init() {
return nil
}))
document.Call("addEventListener", "pointerlockerror", js.FuncOf(func(this js.Value, args []js.Value) interface{} {
js.Global().Get("console").Call("error", "pointerlockerror event is fired. 'sandbox=\"allow-pointer-lock\"' might be required.")
js.Global().Get("console").Call("error", "pointerlockerror event is fired. 'sandbox=\"allow-pointer-lock\"' might be required. There is a known issue on Safari (hajimehoshi/ebiten#1604)")
return nil
}))
}