(text)
| 6 | let confirmResolve = null; |
| 7 | |
| 8 | export function showConfirm(text) { |
| 9 | return new Promise(resolve => { |
| 10 | $('confirm-text').textContent = text; |
| 11 | $('confirm-overlay').classList.add('visible'); |
| 12 | confirmResolve = resolve; |
| 13 | }); |
| 14 | } |
| 15 | |
| 16 | export function initConfirm() { |
| 17 | $('confirm-ok').addEventListener('click', () => { |
no test coverage detected