mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2025-06-17 03:45:25 +02:00
Guest Username Change better websocket support
This commit is contained in:
@ -877,7 +877,11 @@
|
||||
var usr = change_unauthenticated_username($(this).val());
|
||||
usr.done(function(data) {
|
||||
Materialize.toast('Username changed successfully!', 10000);
|
||||
run_fetch_routine();
|
||||
if (socket) {
|
||||
run_fetch_routine();
|
||||
socket.disconnect();
|
||||
initiate_websockets();
|
||||
}
|
||||
});
|
||||
usr.fail(function(data) {
|
||||
if (data.status == 429) {
|
||||
|
Reference in New Issue
Block a user