Update old code style

fefa6a0f5ba1b40c926c1295befddd55b674232a

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +11 -11Ignore whitespace
public/scripts/bookmarks.js+11 -11
@@ -609,25 +609,25 @@ export function initBookmarks() {
609609 $(document).on('click', '.select_chat_block, .mes_bookmark', async function (e) {
610610 // If shift is held down, we are not following the bookmark, but creating a new one
611611 if (e.shiftKey) {
612612 varconst selectedMesId = $(this).closest('.mes').attr('mesid');
613613 await createNewBookmark(Number(selectedMesId));
614614 return;
615615 }
616616
617617 letconst file_namefileName = $(this).hasClass('mes_bookmark')
618618 ? $(this).closest('.mes').attr('bookmark_link')
619619 : $(this).attr('file_name').replace('.jsonl', '');
620620
621621 if (!file_namefileName) {
622622 return;
623623 }
624624
625625 try {
626626 showLoader();
627627 if (selected_group) {
628628 await openGroupChat(selected_group, file_namefileName);
629629 } else {
630630 await openCharacterChat(file_namefileName);
631631 }
632632 } finally {
633633 await hideLoader();
@@ -638,16 +638,16 @@ export function initBookmarks() {
638638 });
639639
640640 $(document).on('click', '.mes_create_bookmark', async function () {
641641 varconst selected_mes_idmesId = $(this).closest('.mes').attr('mesid');
642642 if (selected_mes_idmesId !== undefined) {
643643 await createNewBookmark(Number(selected_mes_idmesId));
644644 }
645645 });
646646
647647 $(document).on('click', '.mes_create_branch', async function () {
648648 varconst selected_mes_idmesId = $(this).closest('.mes').attr('mesid');
649649 if (selected_mes_idmesId !== undefined) {
650650 await branchChat(Number(selected_mes_idmesId));
651651 }
652652 });
653653