Skip to content

Commit

Permalink
fix: unable to see VRTL when logged out
Browse files Browse the repository at this point in the history
  • Loading branch information
anatawa12 authored Oct 18, 2024
1 parent 32c85fb commit 31646d9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/frontend/src/pages/timeline.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const rootEl = shallowRef<HTMLElement>();
type TimelinePageSrc = BasicTimelineType | `list:${string}`;
const queue = ref(0);
const srcWhenNotSignin = ref<'local' | 'global'>(isAvailableBasicTimeline('local') ? 'local' : 'global');
const srcWhenNotSignin = ref<'local' | 'global' | 'vmimi-relay'>(isAvailableBasicTimeline('local') ? 'local' : 'global');
const src = computed<TimelinePageSrc>({
get: () => ($i ? defaultStore.reactiveState.tl.value.src : srcWhenNotSignin.value),
set: (x) => saveSrc(x),
Expand Down Expand Up @@ -212,8 +212,8 @@ function saveSrc(newSrc: TimelinePageSrc): void {
}
defaultStore.set('tl', out);
if (['local', 'global'].includes(newSrc)) {
srcWhenNotSignin.value = newSrc as 'local' | 'global';
if (['local', 'global', 'vmimi-relay'].includes(newSrc)) {
srcWhenNotSignin.value = newSrc as 'local' | 'global' | 'vmimi-relay';
}
}
Expand Down

0 comments on commit 31646d9

Please sign in to comment.