Skip to content

Instantly share code, notes, and snippets.

@ChrisHagan
ChrisHagan / tasks.js
Created December 11, 2025 18:33
Extracting the CSRF cookie for reuse in an AJAX patterned call context
function(item, payload) {
const possibleReminder = payload.get('upgrade').map(upgrade => {
const task = {
title: upgrade.args.title,
text: upgrade.args.description,
importance: 10,
reminders: []
};