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