-export function setCookie(name, value)
-{
- var date = new Date();
- date.setTime(date.getTime()+(183*24*60*60*1000)); //6 months
- var expires = "; expires="+date.toGMTString();
- document.cookie = name+"="+value+expires+"; path=/";
+export function setCookie(name, value) {
+ const date = new Date();
+ date.setTime(date.getTime() + 183 * 24 * 60 * 60 * 1000); //6 months
+ const expires = "; expires=" + date.toGMTString();
+ document.cookie = name + "=" + value + expires + "; path=/";