From 82ade3c31fb17b662feec59e9e654ceb66edbb7a Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Wed, 21 Dec 2022 23:37:23 +0100 Subject: feat: Add initial schema and start login --- code/api/wwwroot/scripts/base.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 code/api/wwwroot/scripts/base.js (limited to 'code/api/wwwroot/scripts/base.js') diff --git a/code/api/wwwroot/scripts/base.js b/code/api/wwwroot/scripts/base.js new file mode 100644 index 0000000..3a55994 --- /dev/null +++ b/code/api/wwwroot/scripts/base.js @@ -0,0 +1,9 @@ +const session = { + _storageKey: "session_data", + get() { + return sessionStorage.getItem(session._storageKey); + }, + set(data) { + sessionStorage.setItem(session._storageKey, JSON.stringify(data)) + } +} \ No newline at end of file -- cgit v1.3