leftover console.log

jshint is upset
This commit is contained in:
Sam 2013-08-27 16:02:36 +10:00
parent c4a0152dc6
commit 7787770758
2 changed files with 1 additions and 3 deletions

View File

@ -134,8 +134,6 @@ Discourse = Ember.Application.createWithMixins(Discourse.Ajax, {
// Add a CSRF token to all AJAX requests
Discourse.csrfToken = $('meta[name=csrf-token]').attr('content');
console.log(Discourse.csrfToken);
$.ajaxPrefilter(function(options, originalOptions, xhr) {
if (!options.crossDomain) {
xhr.setRequestHeader('X-CSRF-Token', Discourse.csrfToken);

View File

@ -58,7 +58,7 @@ Discourse.Ajax = Em.Mixin.create({
// note: for bad CSRF we don't loop an extra request right away.
// this allows us to eliminate the possibility of having a loop.
if (xhr.status === 403 && xhr.responseText == "['BAD CSRF']") {
if (xhr.status === 403 && xhr.responseText === "['BAD CSRF']") {
Discourse.csrfToken = null;
}