Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "whodis", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "A simple device and browser sniffer... mostly using navigator.userAgent (yikes)", | ||
@@ -5,0 +5,0 @@ "main": "dist/WhoDis.js", |
@@ -15,3 +15,2 @@ # WhoDis.js | ||
## Install (from npm) | ||
@@ -23,3 +22,2 @@ `npm i whodis` | ||
## Or, import from your file/projects | ||
@@ -35,2 +33,3 @@ `import WhoDis from ./WhoDis` | ||
// Add class to html | ||
const html = document.querySelector('html'); | ||
@@ -49,4 +48,13 @@ | ||
} | ||
// bail if mobile | ||
if (WhoDis.anyMobile) return; | ||
``` | ||
## Log info on current `userAgent` | ||
``` | ||
console.log(WhoDis.info) | ||
``` | ||
## Current Checks | ||
@@ -53,0 +61,0 @@ |
13091
78