@deckdeckgo/utils
Advanced tools
Comparing version 1.0.0-rc.1-1 to 1.0.0-rc.1-2
@@ -0,6 +1,15 @@ | ||
<a name="1.0.0-rc.1-2"></a> | ||
# 1.0.0-rc.1-2 (2019-09-21) | ||
### Features | ||
* add `isIPad()` function | ||
<a name="1.0.0-rc.1-1"></a> | ||
# 1.0.0-rc.1-1 (2019-09-01) | ||
* improvate `debounce` typing | ||
### Features | ||
* improve `debounce` typing | ||
<a name="1.0.0-rc.1"></a> | ||
@@ -7,0 +16,0 @@ # 1.0.0-rc.1 (2019-08-30) |
@@ -5,2 +5,3 @@ export declare function unifyEvent(e: any): any; | ||
export declare function isIOS(): boolean; | ||
export declare function isIPad(): boolean; | ||
export declare function isFullscreen(): boolean; |
@@ -28,2 +28,9 @@ export function unifyEvent(e) { | ||
} | ||
export function isIPad() { | ||
if (!window || !navigator) { | ||
return false; | ||
} | ||
const a = navigator.userAgent || navigator.vendor || window.opera; | ||
return /iPad/i.test(a); | ||
} | ||
export function isFullscreen() { | ||
@@ -30,0 +37,0 @@ if (!window || !screen) { |
{ | ||
"name": "@deckdeckgo/utils", | ||
"version": "1.0.0-rc.1-1", | ||
"version": "1.0.0-rc.1-2", | ||
"author": "David Dal Busco", | ||
@@ -5,0 +5,0 @@ "description": "A collection of utils methods and functions developed for DeckDeckGo", |
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
8189
90