@deckdeckgo/utils
Advanced tools
Comparing version 1.0.0-rc.1-3 to 1.0.0-rc.1-4
@@ -0,1 +1,8 @@ | ||
<a name="1.0.0-rc.1-4"></a> | ||
# 1.0.0-rc.1-4 (2019-11-13) | ||
### Features | ||
* add function `isFirefox` | ||
<a name="1.0.0-rc.1-3"></a> | ||
@@ -2,0 +9,0 @@ # 1.0.0-rc.1-3 (2019-11-05) |
@@ -7,1 +7,2 @@ export declare function unifyEvent(e: any): any; | ||
export declare function isFullscreen(): boolean; | ||
export declare function isFirefox(): boolean; |
@@ -41,1 +41,8 @@ export function unifyEvent(e) { | ||
} | ||
export function isFirefox() { | ||
if (!window || !navigator) { | ||
return false; | ||
} | ||
const a = navigator.userAgent || navigator.vendor || window.opera; | ||
return /firefox/i.test(a); | ||
} |
{ | ||
"name": "@deckdeckgo/utils", | ||
"version": "1.0.0-rc.1-3", | ||
"version": "1.0.0-rc.1-4", | ||
"author": "David Dal Busco", | ||
@@ -5,0 +5,0 @@ "description": "A collection of utils methods and functions developed for DeckDeckGo", |
@@ -17,3 +17,3 @@ # DeckDeckGo - Types | ||
git clone https://github.com/deckgo/deckdeckgo | ||
cd deckdeckgo/webcomponents/utils | ||
cd deckdeckgo/utils/utils | ||
npm install | ||
@@ -20,0 +20,0 @@ npm run build |
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
13109
184