Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function getCookie(name) {
- const cookie = document.cookie.match(new RegExp(name + '=([^;]+)'));
- return (cookie != null) ? cookie[1] : null;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement