1
0
mirror of https://github.com/ascribe/onion.git synced 2024-06-30 13:41:57 +02:00

fix extraction

This commit is contained in:
Tim Daubenschütz 2015-07-16 18:23:44 +02:00
parent ee6d2789ed
commit 1b210bd10c

View File

@ -1,6 +1,7 @@
'use strict';
import { sanitize } from './general_utils';
import AppConstants from './constants_utils';
// TODO: Create Unittests that test all functions
@ -67,7 +68,7 @@ export function getCookie(name) {
let parts = document.cookie.split(';');
for(let i = 0; i < parts.length; i++) {
if(parts[i].indexOf('csrftoken=') > -1) {
if(parts[i].indexOf(AppConstants.csrftoken + '=') > -1) {
return parts[i].split('=').pop();
}
}