refs #4869 no borrar pin al abrit dialogo #10

Merged
robert merged 3 commits from 4869-workerTimeControl into test 2023-02-15 09:29:32 +00:00
1 changed files with 1 additions and 0 deletions

View File

@ -10,6 +10,7 @@ function setEvents() {
const heartEl = document.querySelector('body > h1 > span'); const heartEl = document.querySelector('body > h1 > span');
heartEl.addEventListener('click', function() { heartEl.addEventListener('click', function() {
const key = prompt('Introduce la clave'); const key = prompt('Introduce la clave');
if (key === null) return
localStorage.setItem('vnKey', key); localStorage.setItem('vnKey', key);
}); });