refs #4869 no borrar pin al abrit dialogo
gitea/worker-time-control/pipeline/head This commit looks good
Details
gitea/worker-time-control/pipeline/head This commit looks good
Details
This commit is contained in:
parent
f511abd906
commit
0d7fbc8313
|
@ -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);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue