···
DOWN: ["(↓°□°)↓", "(´◕‿◕)↓", "↓(´・ω・)↓"],
-
const customBangs = JSON.parse(localStorage.getItem("custom-bangs") || "{}");
function getFocusableElements(
root: HTMLElement = document.body,
···
CONSTANTS.LOCAL_STORAGE_KEYS.CUSTOM_BANGS,
···
validatedElements.removeBangs.forEach((button) => {
button.addEventListener("click", (event) => {
-
const shortcut = (event.target as HTMLButtonElement).dataset.shortcut;
delete customBangs[shortcut];
CONSTANTS.LOCAL_STORAGE_KEYS.CUSTOM_BANGS,
···
DOWN: ["(↓°□°)↓", "(´◕‿◕)↓", "↓(´・ω・)↓"],
+
} = JSON.parse(localStorage.getItem("custom-bangs") || "{}");
function getFocusableElements(
root: HTMLElement = document.body,
···
CONSTANTS.LOCAL_STORAGE_KEYS.CUSTOM_BANGS,
···
validatedElements.removeBangs.forEach((button) => {
button.addEventListener("click", (event) => {
+
const shortcut = (event.target as HTMLButtonElement).dataset
delete customBangs[shortcut];
CONSTANTS.LOCAL_STORAGE_KEYS.CUSTOM_BANGS,