@micro-js/cookies-enabled
v1.0.0
Published
Check whether or not cookies are enabled
Downloads
2
Readme
cookies-enabled
Check whether or not cookies are enabled
Installation
$ npm install @micro-js/cookies-enabled
Usage
var cookiesEnabled = require('@micro-js/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