mirror of
https://github.com/overte-org/overte.git
synced 2025-08-13 01:54:58 +02:00
Merge pull request #1645 from ada-tv/fix/grab-hasOwnProperty
Fix desktop grab attempts spamming errors in some cases
This commit is contained in:
commit
559b6b607d
1 changed files with 2 additions and 0 deletions
|
@ -257,6 +257,8 @@ var getGrabbableData = function (ggdProps) {
|
|||
grabbableData = ggdProps.grab;
|
||||
}
|
||||
|
||||
if (!grabbableData) { return {}; }
|
||||
|
||||
// extract grab-related properties, provide defaults if any are missing
|
||||
if (!grabbableData.hasOwnProperty("grabbable")) {
|
||||
grabbableData.grabbable = true;
|
||||
|
|
Loading…
Reference in a new issue