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.open('POST', 'http://127.0.0.1:8765');
|
||||||
xhr.withCredentials = true;
|
|
||||||
xhr.setRequestHeader('Content-Type', 'text/json');
|
|
||||||
xhr.send(JSON.stringify({action, params}));
|
xhr.send(JSON.stringify({action, params}));
|
||||||
} else {
|
} else {
|
||||||
callback(null);
|
callback(null);
|
||||||
|
Loading…
Reference in New Issue
Block a user