diff --git a/js/index.js b/js/index.js index c4c5d3e..33e51f9 100644 --- a/js/index.js +++ b/js/index.js @@ -10,6 +10,8 @@ function setEvents() { const heartEl = document.querySelector('body > h1 > span'); heartEl.addEventListener('click', function() { const key = prompt('Introduce la clave'); + console.log('key', key) + if (key === null) return localStorage.setItem('vnKey', key); });