@deckdeckgo/utils
Advanced tools
Comparing version 1.3.0 to 1.4.0
@@ -0,1 +1,9 @@ | ||
<a name="1.4.0"></a> | ||
# 1.4.0 (2020-11-20) | ||
### Fix | ||
- detection iPad for iOS >= 13 | ||
<a name="1.3.0"></a> | ||
@@ -2,0 +10,0 @@ |
@@ -38,3 +38,6 @@ 'use strict'; | ||
const a = navigator.userAgent || navigator.vendor || window.opera; | ||
return /iPad/i.test(a); | ||
if (/iPad/i.test(a)) { | ||
return true; | ||
} | ||
return /Macintosh/i.test(a) && isMobile(); | ||
} | ||
@@ -41,0 +44,0 @@ function isFullscreen() { |
@@ -34,3 +34,6 @@ export function unifyEvent(e) { | ||
const a = navigator.userAgent || navigator.vendor || window.opera; | ||
return /iPad/i.test(a); | ||
if (/iPad/i.test(a)) { | ||
return true; | ||
} | ||
return /Macintosh/i.test(a) && isMobile(); | ||
} | ||
@@ -37,0 +40,0 @@ export function isFullscreen() { |
{ | ||
"name": "@deckdeckgo/utils", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"author": "David Dal Busco", | ||
@@ -5,0 +5,0 @@ "description": "A collection of utils methods and functions developed for DeckDeckGo", |
@@ -1,3 +0,11 @@ | ||
# DeckDeckGo - Types | ||
[![npm][npm-badge]][npm-badge-url] | ||
[![license][npm-license]][npm-license-url] | ||
[npm-badge]: https://img.shields.io/npm/v/@deckdeckgo/utils | ||
[npm-badge-url]: https://www.npmjs.com/package/@deckdeckgo/utils | ||
[npm-license]: https://img.shields.io/npm/l/@deckdeckgo/utils | ||
[npm-license-url]: https://github.com/deckgo/deckdeckgo/blob/master/utils/utils/LICENSE | ||
# DeckDeckGo - Utils | ||
A collection of utils methods and functions developed and used across apps and components of [DeckDeckGo]. | ||
@@ -64,3 +72,3 @@ | ||
static isFullscreen(): boolean | ||
``` | ||
``` | ||
@@ -71,2 +79,2 @@ ## License | ||
[DeckDeckGo]: https://deckdeckgo.com | ||
[deckdeckgo]: https://deckdeckgo.com |
21110
382
79