LearnNewsExamplesServices
Frontmatter
id4199
titleCookie add-on issue with nonexistent cookies
stateClosed
labels
bug
assignees[]
createdAtMar 23, 2023, 11:27 AM
updatedAtMar 23, 2023, 12:05 PM
githubUrlhttps://github.com/neomjs/neo/issues/4199
authorGhost
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtMar 23, 2023, 12:05 PM

Cookie add-on issue with nonexistent cookies

Closed v8.1.0 bug
Ghost
Ghost commented on Mar 23, 2023, 11:27 AM

Describe the bug A JS error occurs when using the getCookie method of the Cookie add-on, if no cookie corresponding the given parameter is found.

To Reproduce Steps to reproduce the behavior:

  1. Import Cookie add-on.
  2. Call getCookie method providing a cookie name which doesn't exist.

Expected behavior null is returned for not found cookies.

Screenshots

image

Ghost added the bug label on Mar 23, 2023, 11:27 AM
Ghost cross-referenced by PR #4202 on Mar 23, 2023, 12:00 PM
tobiu closed this issue on Mar 23, 2023, 12:05 PM