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-mock.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-mock.js')
| -rw-r--r-- | src/utils-mock.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/utils-mock.js b/src/utils-mock.js index 5457700..563f685 100644 --- a/src/utils-mock.js +++ b/src/utils-mock.js @@ -59,3 +59,13 @@ export function getCourseParticipantsUrl() { console.error("Try to get mocked participations URL"); return ""; } + +export class CourseLocalStorage { + static getItem(key) { + return localStorage.getItem(`${key}-mock`); + } + + static setItem(key, val) { + return localStorage.setItem(`${key}-mock`, val); + } +} |
