diff options
Diffstat (limited to 'client/src/root-helpers/local-storage-utils.ts')
-rw-r--r-- | client/src/root-helpers/local-storage-utils.ts | 10 |
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 @@ | |||
1 | function getBoolOrDefault (value: string, defaultValue: boolean) { | ||
2 | if (value === 'true') return true | ||
3 | if (value === 'false') return false | ||
4 | |||
5 | return defaultValue | ||
6 | } | ||
7 | |||
8 | export { | ||
9 | getBoolOrDefault | ||
10 | } | ||