Fix handy not working correctly (#6425)

This commit is contained in:
WithoutPants 2025-12-18 14:52:42 +11:00 committed by GitHub
parent af11189718
commit e9f5e7d6b4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -178,6 +178,10 @@ export class Interactive {
this._connected = await this._handy
.setHsspSetup(funscriptUrl)
.then((result) => result === HsspSetupResult.downloaded);
// for some reason we need to call getStatus after setup to ensure proper state
// see https://github.com/defucilis/thehandy/issues/3
await this._handy.getStatus();
}
async sync() {