Skip to content

Commit 8e82f0d

Browse files
committed
refac
1 parent c40ea7f commit 8e82f0d

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/routes/+layout.svelte

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@
158158
159159
if (version !== null) {
160160
WEBUI_VERSION.set(version);
161+
window.WEBUI_VERSION = version;
161162
}
162163
163164
console.log('version', version);
@@ -709,6 +710,10 @@
709710
await goto(event.data.path);
710711
return;
711712
}
713+
if (event.type === 'query' && event.data?.query) {
714+
await goto(`/?q=${encodeURIComponent(event.data.query)}`);
715+
return;
716+
}
712717
if (event.type === 'models:refresh') {
713718
const token = localStorage.token;
714719
if (token) {

0 commit comments

Comments
 (0)