Some refactoring.

This commit is contained in:
John Livingston
2024-06-06 10:26:39 +02:00
parent 5c87eef915
commit aa9697074a
4 changed files with 13 additions and 4 deletions

View File

@ -6,7 +6,6 @@
import type { RegisterClientOptions } from '@peertube/peertube-types/client'
import { html, render } from 'lit'
import './elements' // Import all needed elements.
import { registerClientOptionsSubject$ } from '../lib/contexts/peertube'
/**
* Registers stuff related to the user's configuration pages.
@ -18,8 +17,6 @@ async function registerConfiguration (clientOptions: RegisterClientOptions): Pro
const settings = await peertubeHelpers.getSettings()
if (settings['disable-channel-configuration']) { return }
registerClientOptionsSubject$.next(clientOptions)
registerClientRoute({
route: 'livechat/configuration',
onMount: async ({ rootEl }) => {