@f/cookies-enabled
v1.1.1
Published
Check whether or not cookies are enabled
Downloads
2,238
Readme
cookies-enabled
Check whether or not cookies are enabled
Installation
$ npm install @f/cookies-enabled
Usage
var cookiesEnabled = require('@f/cookies-enabled')
if (!cookiesEnabled()) {
alert('Please enable cookies before using this website!')
}
API
cookiesEnabled()
Returns: Boolean indicating whether or not cookies are currently enabled in the user's browser.
License
MIT