Socket
Book a DemoInstallSign in
Socket

@economist/component-cookie-message

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@economist/component-cookie-message

Reusable cookie message component

4.3.0
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

The cookie-message component displays an EU cookie warning in the absence of a cookie named ec_cookie_message_0.

The cookie is set to 1 upon first load.

The message will not display in the test page if the cookie is set. This code will clear it:

document.cookie='ec_cookie_message_0'+'=;Max-Age=0'

Accepted CSS variables:

  • --cookiemessage-vertical-padding
  • --cookiemessage-horizontal-padding
  • --cookiemessage-min-height
  • --cookiemessage-link-hover

FAQs

Package last updated on 25 Jan 2018

Did you know?

Socket

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.