forked from mirrors/LibreTranslate
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("s", self.translatedText);
|
||||||
data.append("source", self.sourceLang);
|
data.append("source", self.sourceLang);
|
||||||
data.append("target", self.targetLang);
|
data.append("target", self.targetLang);
|
||||||
|
data.append("api_key", localStorage.getItem("api_key") || "");
|
||||||
|
|
||||||
request.open('POST', BaseUrl + '/suggest', true);
|
request.open('POST', BaseUrl + '/suggest', true);
|
||||||
request.onload = function() {
|
request.onload = function() {
|
||||||
|
|
Loading…
Reference in a new issue