diff --git a/js/index.js b/js/index.js index 64ecef2..654a801 100644 --- a/js/index.js +++ b/js/index.js @@ -7,7 +7,7 @@ $(document).ready(function () { }); function setEvents() { - const heartEl = document.querySelector('body > h1 > span') + const heartEl = document.querySelector('body > h1 > span'); heartEl.addEventListener('click', function() { const key = prompt('Introduce la clave'); localStorage.setItem('vnKey', key); @@ -32,7 +32,6 @@ function setEvents() { }, 200); $(".loading").fadeOut(200); }); - } function login() { diff --git a/js/main.js b/js/main.js index b605579..33d9a8f 100644 --- a/js/main.js +++ b/js/main.js @@ -20,7 +20,7 @@ $.ajaxPrefilter(function(xhr) { var orgErrorHandler = xhr.error; var key = localStorage.getItem('vnKey'); - if(key){ + if (key) { xhr.jsonData.push(key) } diff --git a/package-lock.json b/package-lock.json index 6465606..8e14c92 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "es.verdnatura.worker-time-control", - "version": "1.0.0", + "version": "1.0.1", "lockfileVersion": 1, "requires": true, "dependencies": {