1
0
mirror of https://github.com/LibreTranslate/LibreTranslate.git synced 2024-07-07 09:50:09 +02:00

Forward API key in suggestions client event

This commit is contained in:
Mufeed Ali 2021-10-31 12:57:36 +05:30
parent 3af4ce16e1
commit 29eca1fbd4
No known key found for this signature in database
GPG Key ID: 5B93F7B4CC99C769

View File

@ -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() {