refs #4869 no borrar pin al abrit dialogo
gitea/worker-time-control/pipeline/head This commit looks good Details

This commit is contained in:
Robert Ferrús 2023-02-14 09:40:52 +01:00
parent f511abd906
commit 0d7fbc8313
1 changed files with 2 additions and 0 deletions

View File

@ -10,6 +10,8 @@ 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');
console.log('key', key)
if (key === null) return
localStorage.setItem('vnKey', key); localStorage.setItem('vnKey', key);
}); });