2.0.0 • Published 4 years ago

third-party-cookie-check v2.0.0

Weekly downloads
245
License
ISC
Repository
github
Last release
4 years ago

third-party-cookie-check

A simple way to check for third party cookie support.

Warning

This module can be imported on the server and in a browser without issue, but it will likely throw an error if you call the function on the server.

You know your environment better than I do, so I leave it to you to ensure your code is running in a browser before calling this module.

Installation

npm install third-party-cookie-check

Usage

import cookieCheck from 'third-party-cookie-check';

// If the check takes > 1 second, supported will be false and timedOut will be true
const { supported, timedOut } = await cookieCheck();
2.0.0

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.0

4 years ago