removing duplicate i18n string
This commit is contained in:
parent
d44478fdd7
commit
93e42d1038
2 changed files with 1 additions and 5 deletions
|
|
@ -1239,10 +1239,6 @@
|
||||||
"message": "Use this answer",
|
"message": "Use this answer",
|
||||||
"description": ""
|
"description": ""
|
||||||
},
|
},
|
||||||
"apiwebchat_show_differences": {
|
|
||||||
"message": "Show differences",
|
|
||||||
"description": ""
|
|
||||||
},
|
|
||||||
"apiwebchat_stopping": {
|
"apiwebchat_stopping": {
|
||||||
"message": "Stopping",
|
"message": "Stopping",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
|
|
||||||
|
|
@ -256,7 +256,7 @@ class MessagesArea extends HTMLElement {
|
||||||
// diff viewer button
|
// diff viewer button
|
||||||
if(promptData.prompt_info?.use_diff_viewer == "1") {
|
if(promptData.prompt_info?.use_diff_viewer == "1") {
|
||||||
const diffvButton = document.createElement('button');
|
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 () => {
|
diffvButton.addEventListener('click', async () => {
|
||||||
let strippedText = fullTextHTMLAtAssignment.replace(/<\/?[^>]+(>|$)/g, "");
|
let strippedText = fullTextHTMLAtAssignment.replace(/<\/?[^>]+(>|$)/g, "");
|
||||||
let originalText = promptData.prompt_info?.selection_text;
|
let originalText = promptData.prompt_info?.selection_text;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue