Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
stanislav-atr committed Oct 12, 2022
1 parent f8097f0 commit ea51d04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/helpers/cookie-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const prepareCookie = (name, value) => {
/**
* Parses cookie string into object
* @param {string} cookieString string that conforms to document.cookie format
* @returns {object} key:value object that corresponds with incoming cookies keys and values
* @returns {Object} key:value object that corresponds with incoming cookies keys and values
*/
export const parseCookieString = (cookieString) => {
const COOKIE_DELIMITER = '=';
Expand All @@ -69,7 +69,7 @@ export const parseCookieString = (cookieString) => {
cookieKey = string.trim();
} else {
cookieKey = string.slice(0, delimiterIndex).trim();
cookieValue = string.slice(delimiterIndex + 1, string.length);
cookieValue = string.slice(delimiterIndex + 1);
}

return Object.defineProperty(result, cookieKey, {
Expand Down

0 comments on commit ea51d04

Please sign in to comment.