diff --git a/public/scripts/bookmarks.js b/public/scripts/bookmarks.js index b16e701cc..83a2b16d4 100644 --- a/public/scripts/bookmarks.js +++ b/public/scripts/bookmarks.js @@ -264,7 +264,7 @@ export async function convertSoloToGroupChat() { return; } - 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?` + `
` + t`This cannot be reverted.`); + 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?` + '
' + t`This cannot be reverted.`); if (!confirm) { return; } diff --git a/public/scripts/logprobs.js b/public/scripts/logprobs.js index e8269584b..e82294782 100644 --- a/public/scripts/logprobs.js +++ b/public/scripts/logprobs.js @@ -248,7 +248,7 @@ function onAlternativeClicked(tokenLogprobs, alternative) { * coordinates from a PointerEvent, this function identifies the exact * word clicked and returns the text preceding it within the span. * - * If the clicked position does not resolve to a valid word or text node, + * If the clicked position does not resolve to a valid word or text node, * the entire span text is returned as a fallback. * * @param {PointerEvent} event - The click event containing the x and y coordinates. @@ -268,7 +268,7 @@ function getTextBeforeClickedWord(event, spanText) { const text = textNode.nodeValue; // Find the boundaries of the clicked word - const start = text.lastIndexOf(" ", offset - 1) + 1; + const start = text.lastIndexOf(' ', offset - 1) + 1; // Return the text before the clicked word return text.slice(0, start); diff --git a/public/scripts/openai.js b/public/scripts/openai.js index becc27fe6..dd094384d 100644 --- a/public/scripts/openai.js +++ b/public/scripts/openai.js @@ -3613,7 +3613,7 @@ async function onExportPresetClick() { const fieldValues = sensitiveFields.filter(field => preset[field]).map(field => `${field}: ${preset[field]}`); const shouldConfirm = fieldValues.length > 0; const textHeader = t`Your preset contains proxy and/or custom endpoint settings.`; - const textMessage = `
` + t`Do you want to remove these fields before exporting?` + `

${DOMPurify.sanitize(fieldValues.join('
'))}`; + const textMessage = '
' + t`Do you want to remove these fields before exporting?` + `

${DOMPurify.sanitize(fieldValues.join('
'))}`; const cancelButton = { text: 'Cancel', result: POPUP_RESULT.CANCELLED, appendAtEnd: true }; const popupOptions = { customButtons: [cancelButton] }; const popupResult = await Popup.show.confirm(textHeader, textMessage, popupOptions); @@ -4370,7 +4370,7 @@ async function onOpenrouterModelSortChange() { async function onNewPresetClick() { const popupText = `

` + t`Preset name:` + `

-

` + t`Hint: Use a character/group name to bind preset to a specific chat.` + `

`; +

` + t`Hint: Use a character/group name to bind preset to a specific chat.` + '

'; const name = await callPopup(popupText, 'input', oai_settings.preset_settings_openai); if (!name) {