@deckdeckgo/utils
Advanced tools
Comparing version 1.8.0 to 1.8.1
@@ -0,1 +1,9 @@ | ||
<a name="1.8.1"></a> | ||
# 1.8.1 (2021-04-23) | ||
### Chore | ||
- remove document check | ||
<a name="1.8.0"></a> | ||
@@ -2,0 +10,0 @@ |
@@ -42,5 +42,2 @@ 'use strict'; | ||
function isFullscreen() { | ||
if (!document) { | ||
return false; | ||
} | ||
return (!!(document.fullscreenElement || document.mozFullScreenElement || document.webkitFullscreenElement || document.msFullscreenElement)); | ||
@@ -56,5 +53,2 @@ } | ||
function isRTL() { | ||
if (!document || !document.documentElement) { | ||
return false; | ||
} | ||
const htmlDir = document.documentElement.getAttribute('dir'); | ||
@@ -61,0 +55,0 @@ return htmlDir !== null && htmlDir === 'rtl'; |
@@ -38,5 +38,2 @@ export function unifyEvent(e) { | ||
export function isFullscreen() { | ||
if (!document) { | ||
return false; | ||
} | ||
return (!!(document.fullscreenElement || document.mozFullScreenElement || document.webkitFullscreenElement || document.msFullscreenElement)); | ||
@@ -52,5 +49,2 @@ } | ||
export function isRTL() { | ||
if (!document || !document.documentElement) { | ||
return false; | ||
} | ||
const htmlDir = document.documentElement.getAttribute('dir'); | ||
@@ -57,0 +51,0 @@ return htmlDir !== null && htmlDir === 'rtl'; |
{ | ||
"name": "@deckdeckgo/utils", | ||
"version": "1.8.0", | ||
"version": "1.8.1", | ||
"author": "David Dal Busco", | ||
@@ -5,0 +5,0 @@ "description": "A collection of utils methods and functions developed for DeckDeckGo", |
18855
412