aboutsummaryrefslogtreecommitdiff
path: root/src/utils-prod.js
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2026-09-29 18:13:59 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2026-09-29 18:13:59 +0200
commit735d943097c64764c2b891368b7dd61b716e3e81 (patch)
tree5d311dbad81c9b48cb7440464e0f658ae78a456d /src/utils-prod.js
parent03ba4caf8f59c90bc637f8ab0fc7ce232c6f4926 (diff)
downloadbycs-sol-735d943097c64764c2b891368b7dd61b716e3e81.tar.gz
bycs-sol-735d943097c64764c2b891368b7dd61b716e3e81.zip
utils: cache user icon urls
Diffstat (limited to 'src/utils-prod.js')
-rw-r--r--src/utils-prod.js12
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);
- }
-}