diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2026-09-17 17:07:02 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2026-09-17 17:07:02 +0200 |
| commit | bc9cdc0bff49ebf553be19dd959a25d6e97ec23a (patch) | |
| tree | d27e27da54d51c76f2464ddb8a2ea3009aa1ba0a /src/database-prod.ts | |
| parent | a5d07617216641e35f5358d7231852ab31fb436c (diff) | |
| download | bycs-sol-bc9cdc0bff49ebf553be19dd959a25d6e97ec23a.tar.gz bycs-sol-bc9cdc0bff49ebf553be19dd959a25d6e97ec23a.zip | |
use course dependent local cache key
This prevents multiple courses overwriting the cached values.
Diffstat (limited to 'src/database-prod.ts')
| -rw-r--r-- | src/database-prod.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/database-prod.ts b/src/database-prod.ts index d41e829..6712adb 100644 --- a/src/database-prod.ts +++ b/src/database-prod.ts @@ -31,7 +31,7 @@ let graduationDb = findGraduationDb(); const ID_QUERY_PARAM_REGEX = /[?&]id=(\d+)/; async function findGraduationDb() { - let graduationDbId = localStorage.getItem("gruaduationDbId"); + let graduationDbId = localStorage.getItem(`gruaduationDbId-${getCourseId()}`); if (graduationDbId !== null) { return new DB(Number(graduationDbId)); } |
