Only choose from languages available in argos

This commit is contained in:
Piero Toffanin 2021-01-15 12:12:00 -05:00
parent 41e381ae0c
commit db01aeb404
3 changed files with 13 additions and 5 deletions

View file

@ -345,8 +345,7 @@ document.addEventListener('DOMContentLoaded', function(){
' source: "' + this.$options.filters.escape(this.sourceLang) + '",',
' target: "' + this.$options.filters.escape(this.targetLang) + '"',
' }),',
' headers: {',
' "Content-Type": "application/json"}',
' headers: { "Content-Type": "application/json" }',
' });',
'',
'console.log(await res.json());'].join("\n");