[HD] [GUI] Fix issue where auth wouldn't work at first

Fixes issue where auth wouldn't work at first with GUI because the API version wasn't checked.
This commit is contained in:
AnimeDL 2024-03-17 22:47:56 -07:00
parent 50c6ca66a3
commit 1e09625b85

View file

@ -17,7 +17,8 @@ class HidiveHandler extends Base implements MessageHandler {
this.initState();
}
public auth(data: AuthData) {
public async auth(data: AuthData) {
await this.getAPIVersion();
return this.hidive.doAuth(data);
}