From 54f4c104f1aa069c62a8765ce6d992ab46c20a31 Mon Sep 17 00:00:00 2001 From: robert Date: Fri, 27 Jan 2023 08:45:56 +0100 Subject: [PATCH] refs #4869 arreglar formato --- js/index.js | 3 +-- js/main.js | 2 +- package-lock.json | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) 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": {