Miguel Diaz commited on
Commit
f1a3d5b
·
1 Parent(s): 744be20

fix: statics tests

Browse files
static/js/chatHandler.js CHANGED
@@ -197,7 +197,7 @@ class ChatGPT{
197
  },
198
  });
199
  })
200
- .then(json => console.log('Solicitud finalizada', err)) //imprimir los datos en la consola
201
  .catch(err => console.log('Solicitud fallida', err)); // Capturar errores
202
 
203
 
 
197
  },
198
  });
199
  })
200
+ .then(json => console.log('Solicitud finalizada', json)) //imprimir los datos en la consola
201
  .catch(err => console.log('Solicitud fallida', err)); // Capturar errores
202
 
203
 
static/js/windowHandler.js CHANGED
@@ -31,9 +31,15 @@ class WindowHandler{
31
  $("#input-text").keydown(() => this.recalcularTextarea());
32
  this.cargarChat(chatH.convesacion);
33
 
34
- $(this.evCtx).on("precarga:inicio", (event, params) => this.precargaInicio());
35
- $(this.evCtx).on("precarga:mensaje", (event, params) => this.precargaMensaje2());
36
- $(this.evCtx).on("precarga:fin", (event, params) => this.precargaFin());
 
 
 
 
 
 
37
 
38
 
39
 
 
31
  $("#input-text").keydown(() => this.recalcularTextarea());
32
  this.cargarChat(chatH.convesacion);
33
 
34
+ $(this.evCtx).on("precarga:inicio", (event, params) => {
35
+ this.precargaInicio()
36
+ });
37
+ $(this.evCtx).on("precarga:mensaje", (event, params) => {
38
+ this.precargaMensaje2(params)}
39
+ );
40
+ $(this.evCtx).on("precarga:fin", (event, params) => {
41
+ this.precargaFin()
42
+ });
43
 
44
 
45