mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Sanitation adjustments
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user