MCPcopy Create free account
hub / github.com/npmx-dev/npmx.dev / open

Function open

app/composables/useModal.ts:4–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2 const getModal = () => document.querySelector<HTMLDialogElement>(`#${modalId}`)
3
4 function open() {
5 const modal = getModal()
6 if (modal) {
7 setTimeout(() => {
8 modal.showModal()
9 })
10 }
11 }
12
13 function close() {
14 const modal = getModal()

Callers

nothing calls this directly

Calls 1

getModalFunction · 0.85

Tested by

no test coverage detected