diff --git a/content_scripts/fairlang.js b/content_scripts/fairlang.js index 573df6c..e68f05b 100644 --- a/content_scripts/fairlang.js +++ b/content_scripts/fairlang.js @@ -6,6 +6,13 @@ function checkTextarea(textarea) { console.log("click " + textarea.id + " -> " + textarea.value); // TODO make queries to the fairlanguage server + + fetch("https://fairlanguage2.dev-star.de/checkDocument?data=liebe+Bürger&json") + .then(response => response.json()) + .then(response => { + console.log(response); + }) + .catch(error => console.log(error)); } (function() { diff --git a/manifest.json b/manifest.json index b3e39c9..1ed8a57 100644 --- a/manifest.json +++ b/manifest.json @@ -12,7 +12,8 @@ }, "permissions": [ - "activeTab" + "activeTab", + "https://fairlanguage2.dev-star.de/*" ], "browser_action": {