Se añade un event listener que loggea cuando se va a apagar la función
This commit is contained in:
@@ -10,6 +10,13 @@ import {
|
||||
type StructuredResponseOptions,
|
||||
} from "../_shared/openai-service.ts";
|
||||
|
||||
addEventListener("beforeunload", (ev: any) => {
|
||||
console.error(
|
||||
"ALERTA: La función se va a apagar. Razón:",
|
||||
ev?.detail?.reason,
|
||||
);
|
||||
});
|
||||
|
||||
export type DataAsignaturaSugerida = {
|
||||
nombre: Tables<"asignaturas">["nombre"];
|
||||
codigo?: Tables<"asignaturas">["codigo"];
|
||||
|
||||
Reference in New Issue
Block a user