Skip to content

Commit

Permalink
Chore: eslint (skin.js)
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorA100 committed Jul 4, 2024
1 parent 415e5e9 commit 837b17c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/skins/classic/js/skin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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) {
Expand Down

0 comments on commit 837b17c

Please sign in to comment.