aboutsummaryrefslogtreecommitdiff
path: root/ext/bg
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-07-14 22:06:47 -0700
committerAlex Yatskov <alex@foosoft.net>2016-07-14 22:06:47 -0700
commit361dd47f0abab271f8ae3bf4ce2cdcc3b0b91c99 (patch)
treebe0dd7d6c3955fcdc8fd8afabd9eec1d186448b6 /ext/bg
parent22219693c906feefbc21998b70b5af69f66e495c (diff)
Simplify requests
Diffstat (limited to 'ext/bg')
-rw-r--r--ext/bg/js/yomichan.js2
1 files changed, 0 insertions, 2 deletions
diff --git a/ext/bg/js/yomichan.js b/ext/bg/js/yomichan.js
index cd4bd4c1..9d03aff6 100644
--- a/ext/bg/js/yomichan.js
+++ b/ext/bg/js/yomichan.js
@@ -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);