diff --git a/GPTrueOrFalse/src/content/content.js b/GPTrueOrFalse/src/content/content.js index f47f517..f7ed26f 100644 --- a/GPTrueOrFalse/src/content/content.js +++ b/GPTrueOrFalse/src/content/content.js @@ -43,7 +43,7 @@ function evaluateSelection() { // evaluate fetch( "https://huggingface.co/openai-detector/?" + - encodeURI(text.replace(/[\r\n]+/g, "")) + encodeURI(text.replace(/[\r\n]+/g, " ")) ) .then(response => response.json()) .then(json => { diff --git a/GPTrueOrFalse/src/popup/index.js b/GPTrueOrFalse/src/popup/index.js index 08d33be..85ae3f6 100644 --- a/GPTrueOrFalse/src/popup/index.js +++ b/GPTrueOrFalse/src/popup/index.js @@ -40,7 +40,7 @@ window.onload = () => { }); }) .then(res => { - // Activate or deactivate button dependng on number of words + // Activate or deactivate button depending on number of words let selected_words = res.token_number; if (selected_words >= 50) { return activateButton("evaluateSelectedText");