Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

auto hide device-chooser when there are no devices #51

Merged
merged 1 commit into from
Dec 30, 2018

Conversation

Sioma112233
Copy link
Contributor

Hey, I love this extension but 1 small issue bugged me.
if you have no input devices connected (no mic), the extension will show 'Extension initializing..." forever (where the input-device chooser should be).
So I fixed it here by automatically hiding the device-chooser if there are currently 0 known devices.

Feel free to comment me if I did this fix in a bad way and you would do it differently.

from my commit msg:

updated _setVisibility to show the device chooser only when atleast 1 device found, otherwise it will be hidden.
also updated _deviceAdded and _deviceRemoved to invoke '_setVisibility' hide/show when number of devices changes

… device found, otherwise it will be hidden.

also updated _deviceAdded and _deviceRemoved to invoke '_setVisibility' hide/show when number of devices changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants