Updated eslint prettier and other files

This commit is contained in:
Greg Jacobs
2024-06-04 09:07:17 -04:00
parent 1e4c307f97
commit 6ba29f130f
14 changed files with 259 additions and 12 deletions

View File

@@ -0,0 +1,23 @@
/**
* Deletes the 'fnc-rbc-session' property from the session storage if it exists.
* If the property exists, it prompts the user for confirmation before deleting.
* If the property does not exist, it displays an alert message.
*/
javascript: (function () {
const rbcSession = sessionStorage.getItem('fnc-rbc-session');
if (rbcSession) {
const sessionValue = JSON.parse(rbcSession);
let properties = '';
for (const key in sessionValue) {
properties += `${key}: ${sessionValue[key]}\n`;
}
const confirmDelete = confirm(`The properties in 'fnc-rbc-session' are:\n\n${properties}\nDo you want to delete 'fnc-rbc-session'?`);
if (confirmDelete) {
sessionStorage.removeItem('fnc-rbc-session');
location.reload();
}
} else {
alert("'fnc-rbc-session' does not exist in session storage.");
}
})();

View File

View File

@@ -1,3 +1,4 @@
// eslint-disable-next-line no-use-before-define
javascript: (function () {
function setFlag(_flag, _state) {
function setFlagSub(_url, _flag, _state) {