mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Remove obsolete characterSelected event
This commit is contained in:
@@ -750,7 +750,6 @@ export function dragElement(elmnt) {
|
||||
observer.disconnect()
|
||||
console.debug(`Saving ${elmntName} UI position`)
|
||||
saveSettingsDebounced();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -925,16 +924,6 @@ $("document").ready(function () {
|
||||
$(document).on("click", ".character_select", function () {
|
||||
setActiveCharacter($(this).find('.avatar').attr('title'));
|
||||
setActiveGroup(null);
|
||||
|
||||
const chid = $(this).attr('chid');
|
||||
eventSource.emit(
|
||||
'characterSelected',
|
||||
{detail: {id: chid, character: characters[chid]}})
|
||||
.then(r => {
|
||||
SaveLocal('ActiveChar', chid);
|
||||
SaveLocal('ActiveGroup', null);
|
||||
});
|
||||
|
||||
saveSettingsDebounced();
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user