mirror of
https://github.com/chuot/rdio-scanner.git
synced 2026-08-13 16:33:01 -06:00
Fix beep method not completing promise in some situation
This commit is contained in:
parent
0f21e399ac
commit
870109e93a
|
|
@ -5,6 +5,7 @@
|
|||
- Change config.options.useDimmer to config.options.dimmerDelay.
|
||||
- Fix potential error in handling keypadBeeps styles.
|
||||
- Change handling of skip delay on client.
|
||||
- Fix beep method not completing promise in some situation.
|
||||
|
||||
# Version 4.6
|
||||
|
||||
|
|
|
|||
|
|
@ -179,7 +179,13 @@ export class AppRdioScannerService implements OnDestroy {
|
|||
|
||||
const gn = context.createGain();
|
||||
|
||||
const seq = this.config?.keypadBeeps[style] || [];
|
||||
const seq = this.config?.keypadBeeps[style];
|
||||
|
||||
if (!Array.isArray(seq) || !seq.length) {
|
||||
resolve();
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
gn.gain.value = .1;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue