< Retour

UAParser

Install

https://github.com/faisalman/ua-parser-js

Usage

var deviceType = new UAParser().getDevice().type;
if (deviceType === "tablet") {
    
}
else {
    
}