Chore: eslint (skin.js)

pull/4085/head
IgorA100 2024-07-04 16:45:23 +03:00 committed by GitHub
parent 415e5e9f0a
commit 837b17cc4e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -761,7 +761,7 @@ function setButtonState(element_id, btnClass) {
}
}
function isJSON (str) {
function isJSON(str) {
if (typeof str !== 'string') return false;
try {
const result = JSON.parse(str);
@ -786,7 +786,7 @@ function setCookie(name, value, seconds) {
document.cookie = name + "=" + (newValue || "") + expires + "; path=/; samesite=strict";
}
/**
/*
* If JSON is stored in cookies, the function will return an array of values.
*/
function getCookie(name) {