export function getCookieItem ( key ) { return ( '; ' + document . cookie ) . split ( '; ' + key + '=' ) . pop ( ) . split ( ';' ) . shift ( ) ; } export function setCookieItem ( key , value ) { document . cookie = `${ key }=${ value }; ` ; }