ARTIST-Association / ARTIST-Association/CANVAS

Reuse `getCookie` function and rename variable `xsrfCookies`

Open
#75 0 comments 0 reactions 1 assignee Claimed by @lisannengel View on GitHub
Dominant language
Python
Stars
6
Forks
2
PR merge metrics
No merged PRs in 30d

Description

A seemingly identical `getCookie(name)` function is currently defined in both `canvas_editor/static/js/editor/saveAndLoadHandler.mjs` and `canvas_editor/static/js/editor/projectOverviewManager.mjs`.

- [x] Reuse the function instead of re-implementing it
- [x] Check if `xsrfCookies` should be renamed for clarity: Isn't it only a xsrf cookie if the name is 'csrftoken', i.e., this function could also be used for any other cookies?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.