From 2b6aaf98624036433859249eaec421bf9d34de75 Mon Sep 17 00:00:00 2001 From: Bramart Date: Tue, 23 Apr 2024 11:54:58 +0200 Subject: [PATCH] return list instead of one --- src/nomalab.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nomalab.ts b/src/nomalab.ts index 2ee3a6e..1242518 100644 --- a/src/nomalab.ts +++ b/src/nomalab.ts @@ -375,7 +375,7 @@ export class Nomalab { return response.blob() as Promise; } - async getSubtitleFormatsList(): Promise { + async getSubtitleFormatsList(): Promise { const response = await this.#fetch(`subtitleFormats`, {}); if (!response.ok) { this.#throwError( @@ -383,7 +383,7 @@ export class Nomalab { response, ); } - return response.json() as Promise; + return response.json() as Promise; } #throwError(message: string, response: Response): void {