diff options
Diffstat (limited to 'src/utils-prod.js')
| -rw-r--r-- | src/utils-prod.js | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/utils-prod.js b/src/utils-prod.js index 3662c97..fc6e316 100644 --- a/src/utils-prod.js +++ b/src/utils-prod.js @@ -1,4 +1,6 @@ +import { getCourseId } from "./utils-common.ts"; export { + CourseLocalStorage, DATE_FMT, DATETIME_FMT, dateStringNow, @@ -55,13 +57,3 @@ 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); - } -} |
