AnalogCyan / itadakimasu

Consider using arrow functions for callbacks JS-0241
Anti-pattern
Minor
1 occurrence in this check
Unexpected function expression
27  return generated;
28}
29
30document.addEventListener("DOMContentLoaded", async function () {31  document.getElementById("pass").textContent =32    placeholders[Math.floor(Math.random() * placeholders.length)];33  foods = await (await fetch("./data/foods.json")).json();34  dishes = await (await fetch("./data/dishes.json")).json();35});36
37pass.addEventListener("click", async () => {
38  await navigator.clipboard.writeText(pass.innerText);