Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Added the ability to save objects and arrays in cookies using JSON (skin.js) #4085

Merged
merged 4 commits into from
Jul 4, 2024

Conversation

IgorA100
Copy link
Contributor

@IgorA100 IgorA100 commented Jul 4, 2024

No description provided.

@IgorA100 IgorA100 marked this pull request as ready for review July 4, 2024 13:45
}

/**
* If JSON is stored in cookies, the function will return an array of values.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why an array? Shouldn't it return a json object?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will return either an array or an object (depending on what was encoded), because We cut off everything else in “isJSON” so that there are no problems.
I have corrected the code comment.

@connortechnology connortechnology merged commit a88065f into ZoneMinder:master Jul 4, 2024
16 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants