diff --git a/public/scripts/extensions/translate/index.js b/public/scripts/extensions/translate/index.js index 2be6cf45f..488ab2071 100644 --- a/public/scripts/extensions/translate/index.js +++ b/public/scripts/extensions/translate/index.js @@ -199,7 +199,6 @@ async function translateProviderLibre(text, lang) { throw new Error(response.statusText); } - async function translateProviderGoogle(text, lang) { const response = await fetch('/google_translate', { method: 'POST', @@ -447,7 +446,9 @@ jQuery(() => { }); $('#translate_url_button').on('click', async () => { const optionText = $('#translation_provider option:selected').text(); - const url = await callPopup(`