ARTIST-Association / ARTIST-Association/CANVAS
Reuse `getCookie` function and rename variable `xsrfCookies`
Open
- 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
Assessment
This issue has not been assessed yet.