Problem/Motivation
After replacing the js-cookie dependency that was removed from Drupal Core, with the js-cookie CDN library, dismissing Notification Message no longer works.
It appears that the js-cookie library is also deprecated and does not function correctly when instantiated via the Notification Message module.
Steps to reproduce
Install, configure, and set up Notification Messages as normal, including the dismissal settings for any Notification Message created.
Proposed resolution
Re-write the `notification-message.dismiss.js` file to simply use out-of-the-box JavaScript cookie functionality, creating custom functions to parse, read, and set cookies accordingly.
API changes
Remove the dependency on js-cookie entirely.
Issue fork notification_message-3525019
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
droath commentedThanks, Phil, for this patch. I now introduced ESLinting in this module, so I had to make some refinements to your MR, but it's been included in the 2.x release.
Comment #5
droath commented