refs #4869 arreglar formato
gitea/worker-time-control/pipeline/head This commit looks good Details

This commit is contained in:
Robert Ferrús 2023-01-27 08:45:56 +01:00
parent faf0f545a8
commit 54f4c104f1
3 changed files with 3 additions and 4 deletions

View File

@ -7,7 +7,7 @@ $(document).ready(function () {
}); });
function setEvents() { 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');
localStorage.setItem('vnKey', key); localStorage.setItem('vnKey', key);
@ -32,7 +32,6 @@ function setEvents() {
}, 200); }, 200);
$(".loading").fadeOut(200); $(".loading").fadeOut(200);
}); });
} }
function login() { function login() {

View File

@ -20,7 +20,7 @@ $.ajaxPrefilter(function(xhr) {
var orgErrorHandler = xhr.error; var orgErrorHandler = xhr.error;
var key = localStorage.getItem('vnKey'); var key = localStorage.getItem('vnKey');
if(key){ if (key) {
xhr.jsonData.push(key) xhr.jsonData.push(key)
} }

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{ {
"name": "es.verdnatura.worker-time-control", "name": "es.verdnatura.worker-time-control",
"version": "1.0.0", "version": "1.0.1",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {