Merge pull request #1645 from ada-tv/fix/grab-hasOwnProperty
Some checks are pending
Master API-docs CI Build and Deploy / Build and deploy API-docs (push) Waiting to run
Master Doxygen CI Build and Deploy / Build and deploy Doxygen documentation (push) Waiting to run

Fix desktop grab attempts spamming errors in some cases
This commit is contained in:
ksuprynowicz 2025-07-05 17:20:04 +02:00 committed by GitHub
commit 559b6b607d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;