Remove backward compatibility (peertubeHelpers.plugin always available).

This commit is contained in:
John Livingston
2021-06-02 15:48:56 +02:00
parent 22f392d838
commit 10bbb7f040
3 changed files with 9 additions and 14 deletions

View File

@ -150,8 +150,7 @@ interface PeerTubeHelpers {
user: {
getAuthUser: (res: express.Response) => Promise<MUserDefault | undefined>
}
// Added in Peertube 3.2.0
plugin?: {
plugin: {
getBaseStaticRoute: () => string
getBaseRouterRoute: () => string
getDataDirectoryPath: () => string