Remove unused front end function

This commit is contained in:
Reckless_Satoshi 2022-01-03 14:58:05 -08:00
parent 332aeeb5f8
commit bb0d2d46f2
No known key found for this signature in database
GPG Key ID: 9C4585B561315571

View File

@ -1,15 +0,0 @@
function getCookie(name) {
let cookieValue = null;
if (document.cookie && document.cookie !== '') {
const cookies = document.cookie.split(';');
for (let i = 0; i < cookies.length; i++) {
const cookie = cookies[i].trim();
// Does this cookie string begin with the name we want?
if (cookie.substring(0, name.length + 1) === (name + '=')) {
cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
break;
}
}
}
return cookieValue;
}