mirror of
https://github.com/neon-mmd/websurfx.git
synced 2024-11-21 21:48:21 -05:00
✨ feat: fix code formatting (#210)
This commit is contained in:
parent
a727d389ae
commit
1654f743bf
@ -16,8 +16,9 @@ document.addEventListener(
|
|||||||
let cookie = decodeURIComponent(document.cookie)
|
let cookie = decodeURIComponent(document.cookie)
|
||||||
// Set the value of the input field to the decoded cookie value if it is not empty
|
// 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
|
// Otherwise, display a message indicating that no cookies have been saved on the user's system
|
||||||
document.querySelector('.cookies input').value =
|
document.querySelector('.cookies input').value = cookie.length
|
||||||
cookie !== '' ? cookie : 'No cookies have been saved on your system'
|
? cookie
|
||||||
|
: 'No cookies have been saved on your system'
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// If there is an error decoding the cookie, log the error to the console
|
// If there is an error decoding the cookie, log the error to the console
|
||||||
// and display an error message in the input field
|
// and display an error message in the input field
|
||||||
@ -25,5 +26,5 @@ document.addEventListener(
|
|||||||
document.querySelector('.cookies input').value = 'Error decoding cookie'
|
document.querySelector('.cookies input').value = 'Error decoding cookie'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
false
|
false,
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user