Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

use-fullscreen

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

use-fullscreen - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

6

cjs/useFullscreen.js

@@ -62,6 +62,6 @@ "use strict";

var _a = react_1.useState(isBrowserFullscreen()), isFullscreen = _a[0], setState = _a[1];
function handleFullscreenChange() {
setState(isBrowserFullscreen());
}
react_1.useEffect(function () {
function handleFullscreenChange() {
setState(isBrowserFullscreen());
}
if (fullscreenEnabled) {

@@ -68,0 +68,0 @@ doc.addEventListener(changeEvent, handleFullscreenChange);

@@ -59,6 +59,6 @@ import { useEffect, useState } from 'react';

const [isFullscreen, setState] = useState(isBrowserFullscreen());
function handleFullscreenChange() {
setState(isBrowserFullscreen());
}
useEffect(() => {
function handleFullscreenChange() {
setState(isBrowserFullscreen());
}
if (fullscreenEnabled) {

@@ -65,0 +65,0 @@ doc.addEventListener(changeEvent, handleFullscreenChange);

{
"name": "use-fullscreen",
"version": "0.0.4",
"version": "0.0.5",
"description": "Fullscreen hook for React",

@@ -24,3 +24,4 @@ "keywords": [

"build:esm": "tsc --target es6 --outDir esm",
"build:cjs": "tsc --target es5 --lib DOM,ES2015 --outDir cjs"
"build:cjs": "tsc --target es5 --lib DOM,ES2015 --outDir cjs",
"prepare": "npm run build"
},

@@ -27,0 +28,0 @@ "author": "Jacob Rask",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc