element-hq / element-call

Group calls powered by Matrix
https://call.element.io
GNU Affero General Public License v3.0
561 stars 90 forks source link

Use correct DOM event name for visibility changes in useWakeLock #2435

Closed hughns closed 3 months ago

hughns commented 3 months ago

The event should be visibilitychange not visiblitychange as per https://developer.mozilla.org/en-US/docs/Web/API/Document/visibilitychange_event.

I haven't tested this, but I assume that it means the useWakeLock doesn't work as intended today.