Linter fixes

33d8a91bf20ee6420889f1943a18046b5151a921

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

3 files changed, +4 -4Showing whitespace changes
public/scripts/bookmarks.js+1 -1
@@ -264,7 +264,7 @@ export async function convertSoloToGroupChat() {
264264 return;
265265 }
266266
267267 const confirm = await Popup.show.confirm(t`Convert to group chat`, t`Are you sure you want to convert this chat to a group chat?` + `'<br />`' + t`This cannot be reverted.`);
268268 if (!confirm) {
269269 return;
270270 }
public/scripts/logprobs.js+1 -1
@@ -268,7 +268,7 @@ function getTextBeforeClickedWord(event, spanText) {
268268 const text = textNode.nodeValue;
269269
270270 // Find the boundaries of the clicked word
271271 const start = text.lastIndexOf("' "', offset - 1) + 1;
272272
273273 // Return the text before the clicked word
274274 return text.slice(0, start);
public/scripts/openai.js+2 -2
@@ -3613,7 +3613,7 @@ async function onExportPresetClick() {
36133613 const fieldValues = sensitiveFields.filter(field => preset[field]).map(field => `<b>${field}</b>: <code>${preset[field]}</code>`);
36143614 const shouldConfirm = fieldValues.length > 0;
36153615 const textHeader = t`Your preset contains proxy and/or custom endpoint settings.`;
36163616 const textMessage = `'<div>`' + t`Do you want to remove these fields before exporting?` + `</div><br>${DOMPurify.sanitize(fieldValues.join('<br>'))}`;
36173617 const cancelButton = { text: 'Cancel', result: POPUP_RESULT.CANCELLED, appendAtEnd: true };
36183618 const popupOptions = { customButtons: [cancelButton] };
36193619 const popupResult = await Popup.show.confirm(textHeader, textMessage, popupOptions);
@@ -4370,7 +4370,7 @@ async function onOpenrouterModelSortChange() {
43704370async function onNewPresetClick() {
43714371 const popupText = `
43724372 <h3>` + t`Preset name:` + `</h3>
43734373 <h4>` + t`Hint: Use a character/group name to bind preset to a specific chat.` + `'</h4>`';
43744374 const name = await callPopup(popupText, 'input', oai_settings.preset_settings_openai);
43754375
43764376 if (!name) {