Simplify requests

This commit is contained in:
Alex Yatskov 2016-07-14 22:06:47 -07:00
parent 22219693c9
commit 361dd47f0a

View File

@ -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);