1.1.1 • Published 8 years ago
@f/cookies-enabled v1.1.1
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