Socket
Socket
Sign inDemoInstall

@odopod/odo-device

Package Overview
Dependencies
0
Maintainers
3
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @odopod/odo-device

Device-specific settings for JS and CSS


Version published
Weekly downloads
10
increased by25%
Maintainers
3
Install size
50.3 kB
Created
Weekly downloads
 

Changelog

Source

Device [1.3.0] - 2018-6-7

Added

  • Test for passive property in event listener options. Use OdoDevice.HAS_PASSIVE_LISTENERS to check if you can use the third argument of addEventListener as an object. Needed for newer versions of iOS and Chrome which make touchstart and touchmove events on the document passive by default.

Readme

Source

Odo Device

Device-specific settings and helpers.

Install

npm install @odopod/odo-device --save

Quick Start

import or require the package, then use its properties and methods.

import OdoDevice from '@odopod/odo-device';

console.log('Has touch events:', OdoDevice.HAS_TOUCH_EVENTS);
console.log('Touch action:', OdoDevice.prefixed('touchAction', 'pan-y'));
console.log('Has local storage:', OdoDevice.HAS_LOCAL_STORAGE);

Documentation

Visit the Odo component directory for demos, code examples, and documentation.

Keywords

FAQs

Last updated on 07 Jun 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc