Sanitation adjustments

This commit is contained in:
SillyLossy
2023-03-30 00:44:38 +03:00
parent b9ae8efc5b
commit ec3d3d6247
2 changed files with 12 additions and 2 deletions

View File

@@ -262,6 +262,16 @@ const system_messages = {
},
};
// refresh token
$(document).ajaxError(function myErrorHandler(_, xhr) {
if (xhr.status == 403) {
$.get("/csrf-token").then((data) => {
console.log('refreshed csrf token');
token = data.token;
});
}
});
const talkativeness_default = 0.5;
var is_advanced_char_open = false;