Skip to content

Commit

Permalink
Fix typo in Feature Policy for idle-detection
Browse files Browse the repository at this point in the history
As listed in MDN, the policy is spelled as `idle-detection`, and not as `idle_detection`. Hence, browsers were unable to process the policy correctly, effectively ignoring it.

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Permissions-Policy/idle-detection
  • Loading branch information
MrSerth committed Apr 13, 2024
1 parent 92591eb commit 33ee5d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actionpack/lib/action_dispatch/http/permissions_policy.rb
Expand Up @@ -98,7 +98,7 @@ def permissions_policy=(policy)
geolocation: "geolocation",
gyroscope: "gyroscope",
hid: "hid",
idle_detection: "idle_detection",
idle_detection: "idle-detection",
magnetometer: "magnetometer",
microphone: "microphone",
midi: "midi",
Expand Down

0 comments on commit 33ee5d6

Please sign in to comment.