Comments (5)
And how about this:
Example: iPhone. Unless you explicitly set parseUserAgent to true (which defaults to false, as mentioned below) it will always return an empty string.
from express-device.
Yeah, that's good too. Also, I never could get it to work : (
I followed the instructions in the README, npm installed useragent, required it, added the options object to device.capture() with the parseUserAgent set to true, but no luck. Still just the type property coming through.
from express-device.
Did you tried like it's in here: https://github.com/rguerreiro/express-device/blob/master/example/app_with_parse.js ?
from express-device.
Yes. I'm looking into the code, and it looks like npm update didn't pull the latest version... Let me look closer.
from express-device.
Yeup, wrong version : ) My fault.
from express-device.
Related Issues (20)
- What new features should I include for version 0.4? HOT 6
- Would it be possible to add support for hbbtv in the user-agent string
- Docs incorrect HOT 1
- Support car device type HOT 1
- Detect chromecast as TV HOT 1
- Detect Playstation 4 as TV HOT 1
- Feature request - refactor UA parsing to separate module HOT 18
- Support default convention for express middleware
- FTLOG please added example of in-Express use HOT 2
- Googlebot on smartphone classified as "phone" instead of "bot" HOT 3
- wget shows up as a phone HOT 3
- is_desktop is not defined :( HOT 3
- ipad pro 12.9 inch returns device.type as phone HOT 2
- Make isBot orthogonal? HOT 2
- code markup with Native Node.js HOT 1
- [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
- Typescript support HOT 1
- Request using Postman detects as "phone"
- Request with iPad Safari is detected as desktop
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from express-device.