From 33d8a91bf20ee6420889f1943a18046b5151a921 Mon Sep 17 00:00:00 2001
From: Cohee <18619528+Cohee1207@users.noreply.github.com>
Date: Sat, 16 Nov 2024 14:22:46 +0200
Subject: [PATCH] Linter fixes
---
public/scripts/bookmarks.js | 2 +-
public/scripts/logprobs.js | 4 ++--
public/scripts/openai.js | 4 ++--
3 files changed, 5 insertions(+), 5 deletions(-)
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 = `