spot: fixing mic selection
This commit is contained in:
parent
70a60b102b
commit
1976320fbe
4 changed files with 4 additions and 4 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import { createEffect, onMount } from "solid-js";
|
||||
import { onMount } from "solid-js";
|
||||
import Login from "~/entrypoints/popup/Login";
|
||||
import Settings from "~/entrypoints/popup/Settings";
|
||||
import Header from "./components/Header";
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { Component, For } from "solid-js";
|
||||
import { Component } from "solid-js";
|
||||
import micOff from "~/assets/mic-off-red.svg";
|
||||
import micOn from "~/assets/mic-on-dark.svg";
|
||||
import Dropdown from "~/entrypoints/popup/Dropdown";
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ export function useAudioDevices() {
|
|||
void checkAudioDevices();
|
||||
}
|
||||
});
|
||||
} else if (audioDevices.length > 0) {
|
||||
} else if (audioDevices.length > 0 && selectedAudioDevice() === "") {
|
||||
chrome.storage.local.set({ audioPerm: granted });
|
||||
setAudioDevices(audioDevices);
|
||||
setSelectedAudioDevice(audioDevices[0]?.id || "");
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
"name": "spot",
|
||||
"description": "manifest.json description",
|
||||
"private": true,
|
||||
"version": "1.0.22",
|
||||
"version": "1.0.23",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "wxt",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue