mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2024-12-24 10:06:43 +02:00
Forward API key in suggestions client event
This commit is contained in:
parent
3af4ce16e1
commit
29eca1fbd4
@ -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 New Issue
Block a user