removing duplicate i18n string

This commit is contained in:
mic 2025-03-23 21:55:51 +01:00
parent d44478fdd7
commit 93e42d1038
2 changed files with 1 additions and 5 deletions

View file

@ -1239,10 +1239,6 @@
"message": "Use this answer",
"description": ""
},
"apiwebchat_show_differences": {
"message": "Show differences",
"description": ""
},
"apiwebchat_stopping": {
"message": "Stopping",
"description": ""

View file

@ -256,7 +256,7 @@ class MessagesArea extends HTMLElement {
// diff viewer button
if(promptData.prompt_info?.use_diff_viewer == "1") {
const diffvButton = document.createElement('button');
diffvButton.textContent = browser.i18n.getMessage("apiwebchat_show_differences");
diffvButton.textContent = browser.i18n.getMessage("btn_show_differences");
diffvButton.addEventListener('click', async () => {
let strippedText = fullTextHTMLAtAssignment.replace(/<\/?[^>]+(>|$)/g, "");
let originalText = promptData.prompt_info?.selection_text;