Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const customMenuOption = document.getElementById("lunch_type_Custom menu").cloneNode()
- customMenuOption.innerHTML = "Custom menu"
- // =============================
- if (meidoTimeCheck && values.access_week !== "Current week" && officeMeido[values.office] && hasMeidoId) {
- if (!document.getElementById("lunch_type_Custom menu")) lunchTypeSelector.appendChild(customMenuOption)
- } else {
- if (document.getElementById("lunch_type_Custom menu")) document.getElementById("lunch_type_Custom menu").remove()
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement