summaryrefslogtreecommitdiffstats
path: root/web/react/utils/client.jsx
diff options
context:
space:
mode:
authorhmhealey <harrisonmhealey@gmail.com>2015-10-07 11:34:29 -0400
committerhmhealey <harrisonmhealey@gmail.com>2015-10-13 09:42:26 -0400
commit097d236f437b0c5af167cd383c6ee4c3ee45f495 (patch)
treeed81272f94f8706b5ddf25badde6d660df7a657c /web/react/utils/client.jsx
parented6b2cd164b249c67db0e0421cc78964450240c9 (diff)
downloadchat-097d236f437b0c5af167cd383c6ee4c3ee45f495.tar.gz
chat-097d236f437b0c5af167cd383c6ee4c3ee45f495.tar.bz2
chat-097d236f437b0c5af167cd383c6ee4c3ee45f495.zip
Fixed edge cases with leaving a direct channel while viewing that channel
Diffstat (limited to 'web/react/utils/client.jsx')
-rw-r--r--web/react/utils/client.jsx1
1 files changed, 1 insertions, 0 deletions
diff --git a/web/react/utils/client.jsx b/web/react/utils/client.jsx
index 2134dc0f5..4e3505ad2 100644
--- a/web/react/utils/client.jsx
+++ b/web/react/utils/client.jsx
@@ -1159,6 +1159,7 @@ export function setPreferences(preferences, success, error) {
$.ajax({
url: '/api/v1/preferences/set',
dataType: 'json',
+ contentType: 'application/json',
type: 'POST',
data: JSON.stringify(preferences),
success,