aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/root-helpers/local-storage-utils.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/root-helpers/local-storage-utils.ts')
-rw-r--r--client/src/root-helpers/local-storage-utils.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/client/src/root-helpers/local-storage-utils.ts b/client/src/root-helpers/local-storage-utils.ts
new file mode 100644
index 000000000..c2b3f9035
--- /dev/null
+++ b/client/src/root-helpers/local-storage-utils.ts
@@ -0,0 +1,10 @@
1function getBoolOrDefault (value: string, defaultValue: boolean) {
2 if (value === 'true') return true
3 if (value === 'false') return false
4
5 return defaultValue
6}
7
8export {
9 getBoolOrDefault
10}