Make query to fairlanguage server

This commit is contained in:
Lexi / Zoe 2018-10-17 00:33:22 +02:00
parent afac80c54a
commit d71331be75
2 changed files with 9 additions and 1 deletions

View File

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

View File

@ -12,7 +12,8 @@
},
"permissions": [
"activeTab"
"activeTab",
"https://fairlanguage2.dev-star.de/*"
],
"browser_action": {