Support detect brands list (964): Show details Example1 detect device in native server.Micro service detect device from framework moleculer js.I recommend seeing examples Result parse */ Others PS: When creating an object detector = new DeviceDetector data for parsing is reloaded from files, consider this, the best option is initialization at application start indexOf() != -1 const isIOS = result.os & result.os.family = 'iOS' const isWearable = DEVICE_TYPE.WEARABLE const isAndroid = result.os & result.os.family = 'Android' const isDesktop = !isTabled & !isMobile & !isPhablet & !isWearable */ console. indexOf() != -1 const isPhablet = vice &. detect ( userAgent ) /* const DEVICE_TYPE = require('node-device-detector/parser/const/device-type') const isTabled = vice &. Const DeviceDetector = require ( 'node-device-detector' ) const detector = new DeviceDetector const userAgent = 'Mozilla/5.0 (Linux Android 5.0 NX505J Build/KVT49L) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/.78 Mobile Safari/537.36' const result = detector.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |