forked from open-webui/open-webui
feat: changelog.md
This commit is contained in:
parent
9b27d952f8
commit
9f950aea9c
13 changed files with 237 additions and 154 deletions
|
@ -32,16 +32,3 @@ export const documents = writable([
|
|||
|
||||
export const settings = writable({});
|
||||
export const showSettings = writable(false);
|
||||
function createLocalStorageStore(key, startValue) {
|
||||
const storedValue = localStorage.getItem(key);
|
||||
const initialValue = storedValue ? JSON.parse(storedValue) : startValue;
|
||||
|
||||
const store = writable(initialValue);
|
||||
|
||||
store.subscribe((value) => {
|
||||
localStorage.setItem(key, JSON.stringify(value));
|
||||
});
|
||||
|
||||
return store;
|
||||
}
|
||||
export const showWhatsChanged = createLocalStorageStore('showWhatsChanged', true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue