Skip to content

Commit

Permalink
redundant stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsAnkan committed Jul 14, 2023
1 parent bab59f0 commit 501c093
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions templates/govportal/add-post.njk
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,5 @@
var response = (await axios.post('/gov-portal/add-post', { data: data })).data;
message(response);
}
window.onload = () => {
if (!axios.defaults.headers.common['X-CSRF-TOKEN']) axios.defaults.headers.common['X-CSRF-TOKEN'] = document.cookie.split('=')[1];
}
</script>
{% endblock %}
4 changes: 0 additions & 4 deletions templates/submissions.njk
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,5 @@
var response = (await axios.post('/submissions', { data: data })).data;
message(response, '/');
}
window.onload = () => {
if (!axios.defaults.headers.common['X-CSRF-TOKEN']) axios.defaults.headers.common['X-CSRF-TOKEN'] = document.cookie.split('=')[1];
}
</script>
{% endblock %}

0 comments on commit 501c093

Please sign in to comment.