| 1 |
import { on } from './utility/on'; |
| 2 |
|
| 3 |
window.addEventListener('DOMContentLoaded', () => { |
| 4 |
on('#the-list', 'click', '.age-gate-enable-update', (e) => { |
| 5 |
if (confirm('I understand this is a breaking change and have backed up my settings')) { |
| 6 |
const link = document.querySelector('#age-gate-update .update-link'); |
| 7 |
if (link) { |
| 8 |
link.style.pointerEvents = 'initial'; |
| 9 |
link.style.opacity = 1; |
| 10 |
link.style.cursor = 'pointer'; |
| 11 |
} |
| 12 |
} |
| 13 |
}); |
| 14 |
}); |
| 15 |
|
| 16 |
|