Skip to content
This repository was archived by the owner on Jul 5, 2021. It is now read-only.
This repository was archived by the owner on Jul 5, 2021. It is now read-only.

Add functionality to useFullScreen to determine if fullscreen is supported in your environment #257

Description

@pjjanak

Description

Right now the only thing I can see missing from useFullScreen is the ability to check if fullscreen is even allowed/enabled by the browser an app is being rendered in.

Suggested implementation

useFullScreen can be modified to export a boolean enabled which would be:

document.fullscreenEnabled || document.webkitFullscreenEnabled || document.mozFullScreenEnabled || document.msFullScreenEnabled

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions