0
0
mirror of https://github.com/neon-mmd/websurfx.git synced 2024-12-22 04:18:21 -05:00

feat: fix code formatting (#210)

This commit is contained in:
neon_arch 2023-09-22 20:00:57 +03:00
parent a727d389ae
commit 1654f743bf

View File

@ -16,8 +16,9 @@ document.addEventListener(
let cookie = decodeURIComponent(document.cookie)
// Set the value of the input field to the decoded cookie value if it is not empty
// Otherwise, display a message indicating that no cookies have been saved on the user's system
document.querySelector('.cookies input').value =
cookie !== '' ? cookie : 'No cookies have been saved on your system'
document.querySelector('.cookies input').value = cookie.length
? cookie
: 'No cookies have been saved on your system'
} catch (error) {
// If there is an error decoding the cookie, log the error to the console
// and display an error message in the input field
@ -25,5 +26,5 @@ document.addEventListener(
document.querySelector('.cookies input').value = 'Error decoding cookie'
}
},
false
false,
)