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,11 +6,14 @@ import type { RegisterClientOptions } from '@peertube/peertube-types/client'
import type { RegisterClientFormFieldOptions } from '@peertube/peertube-types'
import { registerConfiguration } from './common/configuration/register'
import { registerRoom } from './common/room/register'
import { registerClientOptionsSubject$ } from './common/lib/contexts/peertube'
import './common/lib/elements' // Import shared elements.
async function register (clientOptions: RegisterClientOptions): Promise<void> {
const { peertubeHelpers, registerHook, registerVideoField } = clientOptions
registerClientOptionsSubject$.next(clientOptions)
registerHook({
target: 'action:router.navigation-end',
handler: () => {