Include CSRF token for Sandstorm.

This commit is contained in:
James Cole
2017-02-04 09:02:07 +01:00
parent dc348a72c8
commit b68d5c4374
6 changed files with 7 additions and 6 deletions

View File

@@ -8,7 +8,7 @@
* See the LICENSE file for details.
*/
/** global: Tour, showTour, accountFrontpageUri, billCount, accountExpenseUri, accountRevenueUri */
/** global: Tour, showTour, accountFrontpageUri, token, billCount, accountExpenseUri, accountRevenueUri */
$(function () {
"use strict";
@@ -34,7 +34,7 @@ $(function () {
function endTheTour() {
"use strict";
$.post('json/end-tour');
$.post('json/end-tour', {_token: token});
}