Merge pull request 'refs #4869 no borrar pin al abrit dialogo' (#10) from 4869-workerTimeControl into test
gitea/worker-time-control/pipeline/head This commit looks good Details

Reviewed-on: #10
This commit is contained in:
Robert Ferrús 2023-02-15 09:29:31 +00:00
commit 3fedec8ddd
1 changed files with 1 additions and 0 deletions

View File

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