mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2024-11-25 09:21:04 +00:00
Forward API key in suggestions client event
This commit is contained in:
parent
3af4ce16e1
commit
29eca1fbd4
1 changed files with 1 additions and 0 deletions
|
@ -290,6 +290,7 @@ document.addEventListener('DOMContentLoaded', function(){
|
|||
data.append("s", self.translatedText);
|
||||
data.append("source", self.sourceLang);
|
||||
data.append("target", self.targetLang);
|
||||
data.append("api_key", localStorage.getItem("api_key") || "");
|
||||
|
||||
request.open('POST', BaseUrl + '/suggest', true);
|
||||
request.onload = function() {
|
||||
|
|
Loading…
Reference in a new issue