@react-pdf-viewer/full-screen
Advanced tools
Comparing version 2.2.0 to 2.2.1
@@ -86,7 +86,9 @@ 'use strict'; | ||
}; | ||
var isBrowser = (typeof window !== 'undefined'); | ||
var vendor = isBrowser ? ((Api.FullScreenEnabled in document && defaultVendor) || | ||
(webkitVendor.FullScreenEnabled in document && webkitVendor) || | ||
(msVendor.FullScreenEnabled in document && msVendor) || | ||
defaultVendor) : defaultVendor; | ||
var isBrowser = typeof window !== 'undefined'; | ||
var vendor = isBrowser | ||
? (Api.FullScreenEnabled in document && defaultVendor) || | ||
(webkitVendor.FullScreenEnabled in document && webkitVendor) || | ||
(msVendor.FullScreenEnabled in document && msVendor) || | ||
defaultVendor | ||
: defaultVendor; | ||
var addFullScreenChangeListener = function (handler) { | ||
@@ -99,3 +101,4 @@ if (isBrowser) { | ||
return isBrowser | ||
? element[vendor.ExitFullScreen]() | ||
? | ||
element[vendor.ExitFullScreen]() | ||
: Promise.resolve({}); | ||
@@ -102,0 +105,0 @@ }; |
{ | ||
"name": "@react-pdf-viewer/full-screen", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"description": "A React component to view a PDF document", | ||
@@ -36,3 +36,3 @@ "license": "https://react-pdf-viewer.dev/license", | ||
"dependencies": { | ||
"@react-pdf-viewer/core": "2.2.0" | ||
"@react-pdf-viewer/core": "2.2.1" | ||
}, | ||
@@ -52,3 +52,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "cc37771ea0886faf311ec7d5cd2a5f83aaffca74" | ||
"gitHead": "dc23d3ab29ed34affa25cc4acd25f7fce4e14fd0" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17451
269
+ Added@react-pdf-viewer/core@2.2.1(transitive)
- Removed@react-pdf-viewer/core@2.2.0(transitive)
Updated@react-pdf-viewer/core@2.2.1