diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2026-09-25 20:19:08 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2026-09-25 21:00:13 +0200 |
| commit | 945f3bdceffed7d3bb20ee1849f5f166b3c467bc (patch) | |
| tree | 44a32b7b60f04d92480ca4cb6911e7f04150f089 /src/utils-prod.js | |
| parent | c2f353da71a02519466ac624be6f8ca909d630b4 (diff) | |
| download | bycs-sol-945f3bdceffed7d3bb20ee1849f5f166b3c467bc.tar.gz bycs-sol-945f3bdceffed7d3bb20ee1849f5f166b3c467bc.zip | |
utils: introduce course local storage helper class
Diffstat (limited to 'src/utils-prod.js')
| -rw-r--r-- | src/utils-prod.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/utils-prod.js b/src/utils-prod.js index bc5868f..b53f535 100644 --- a/src/utils-prod.js +++ b/src/utils-prod.js @@ -62,3 +62,13 @@ export function getSesskey() { export function getCourseParticipantsUrl() { return `https://lernplattform.bycs.de/user/index.php?id=${getCourseId()}&perpage=5000&tifirst&tilast`; } + +export class CourseLocalStorage { + static getItem(key) { + return localStorage.getItem(`${key}-${getCourseId()}`); + } + + static setItem(key, val) { + return localStorage.setItem(`${key}-${getCourseId()}`, val); + } +} |
