client/src/standalone/videos/shared/player-html.ts
Function askVideoPassword
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async askVideoPassword (options: { incorrectPassword: boolean, translations: Translations }): Promise<string> {
const { incorrectPassword, translations } = options
return new Promise((resolve) => {
this.wrapperElement.style.display = 'none'