loadHTMLConfig () {
try {
- return this.loadHTMLConfigLocally()
+ this.loadHTMLConfigLocally()
} catch (err) {
// Expected in dev mode since we can't inject the config in the HTML
if (environment.production !== false) {
return this.videoPlaylistPrivaciesObservable.pipe(first())
}
- getServerLocale () {
+ getServerLocale (): Observable<{ [ id: string ]: string }> {
if (!this.localeObservable) {
const completeLocale = isOnDevLocale() ? getDevLocale() : getCompleteLocale(this.localeId)
}
private loadHTMLConfigLocally () {
- const configString = window['PeerTubeServerConfig']
+ // FIXME: typings
+ const configString = (window as any)['PeerTubeServerConfig']
if (!configString) {
throw new Error('Could not find PeerTubeServerConfig in HTML')
}