X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fcore%2Fserver%2Fserver.service.ts;h=fc269749bf36d0d7df5df070b83de7403fb4ad80;hb=54909304287f3c04dcfb39660be8ead57dc95440;hp=0829d87d5c01160e472ca06f3614dfc8979c09c7;hpb=15825ef18d3b2bb74f4e613496cf3e2921a87389;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/core/server/server.service.ts b/client/src/app/core/server/server.service.ts index 0829d87d5..fc269749b 100644 --- a/client/src/app/core/server/server.service.ts +++ b/client/src/app/core/server/server.service.ts @@ -137,7 +137,7 @@ export class ServerService { return this.videoPlaylistPrivaciesObservable.pipe(first()) } - getServerLocale () { + getServerLocale (): Observable<{ [ id: string ]: string }> { if (!this.localeObservable) { const completeLocale = isOnDevLocale() ? getDevLocale() : getCompleteLocale(this.localeId) @@ -193,7 +193,8 @@ export class ServerService { } 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') }