blob: 75d29f4ef0d9cd5bb409624420a4b1092e5518bd (
plain) (
blame)
1
2
3
4
5
6
7
8
|
window.addEventListener('DOMContentLoaded', function () {
var match = document.cookie.split('; ').find(function (row) { return row.startsWith('csrf_token='); });
if (match) {
var token = match.split('=')[1];
var input = document.getElementById('csrf_token');
if (input) input.value = token;
}
});
|