Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
f30d16a3
Commit
f30d16a3
authored
Dec 26, 2023
by
Timothy J. Baek
Browse files
chore: layout comments added
parent
0996f3c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
src/routes/+layout.svelte
src/routes/+layout.svelte
+4
-0
No files found.
src/routes/+layout.svelte
View file @
f30d16a3
...
...
@@ -18,6 +18,7 @@
const backendConfig = await getBackendConfig();
if (backendConfig) {
// Save Backend Status to Store
await config.set(backendConfig);
console.log(backendConfig);
...
...
@@ -30,8 +31,10 @@
});
if (sessionUser) {
// Save Session User to Store
await user.set(sessionUser);
} else {
// Redirect Invalid Session User to /auth Page
localStorage.removeItem('token');
await goto('/auth');
}
...
...
@@ -40,6 +43,7 @@
}
}
} else {
// Redirect to /error when Backend Not Detected
await goto(`/error`);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment