Skip to content

Commit

Permalink
fix(usefullscreen): change isenabled fullsrceen property to match mdn…
Browse files Browse the repository at this point in the history
… documentation (#415)

Co-authored-by: Dubois Thomas <thomas_dubois@groupevsc.com>
  • Loading branch information
thodubois and Dubois Thomas committed Apr 8, 2021
1 parent 136d43f commit b553b63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/shared/useFullscreen.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useState, useCallback, useMemo, useRef } from 'react';
import { useState, useCallback, useRef } from 'react';
import { useDocumentEventListener } from './useDocumentEventListener';
import { warning } from './warning';

Expand Down Expand Up @@ -206,7 +206,7 @@ function useFullscreen(
);

return {
isEnabled: Boolean(element),
isEnabled: Boolean(document[fullscreenControls.fullscreenEnabled]),
toggle,
onChange: onChangeDeprecated,
onError: onErrorDeprecated,
Expand Down

0 comments on commit b553b63

Please sign in to comment.