diff options
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); + } +} |
