summaryrefslogtreecommitdiff
path: root/web/src/utils/Configuration.ts
diff options
context:
space:
mode:
Diffstat (limited to 'web/src/utils/Configuration.ts')
-rw-r--r--web/src/utils/Configuration.ts16
1 files changed, 8 insertions, 8 deletions
diff --git a/web/src/utils/Configuration.ts b/web/src/utils/Configuration.ts
index e8d42946d..81e279974 100644
--- a/web/src/utils/Configuration.ts
+++ b/web/src/utils/Configuration.ts
@@ -1,16 +1,16 @@
export function getEmbeddedVariable(variableName: string) {
- const value = document.body.getAttribute(`data-${variableName}`);
- if (value === null) {
- throw new Error(`No ${variableName} embedded variable detected`);
- }
+ const value = document.body.getAttribute(`data-${variableName}`);
+ if (value === null) {
+ throw new Error(`No ${variableName} embedded variable detected`);
+ }
- return value;
+ return value;
}
export function getRememberMe() {
- return getEmbeddedVariable("rememberme") === "true";
+ return getEmbeddedVariable("rememberme") === "true";
}
export function getResetPassword() {
- return getEmbeddedVariable("resetpassword") === "true";
-} \ No newline at end of file
+ return getEmbeddedVariable("resetpassword") === "true";
+}