Simplify requests
This commit is contained in:
parent
22219693c9
commit
361dd47f0a
@ -144,8 +144,6 @@ class Yomichan {
|
||||
});
|
||||
|
||||
xhr.open('POST', 'http://127.0.0.1:8765');
|
||||
xhr.withCredentials = true;
|
||||
xhr.setRequestHeader('Content-Type', 'text/json');
|
||||
xhr.send(JSON.stringify({action, params}));
|
||||
} else {
|
||||
callback(null);
|
||||
|
Loading…
Reference in New Issue
Block a user