diff --git a/spot/entrypoints/popup/App.tsx b/spot/entrypoints/popup/App.tsx index 3317418aa..8553c93a5 100644 --- a/spot/entrypoints/popup/App.tsx +++ b/spot/entrypoints/popup/App.tsx @@ -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"; diff --git a/spot/entrypoints/popup/components/AudioPicker.tsx b/spot/entrypoints/popup/components/AudioPicker.tsx index 9d24198eb..e462a05a7 100644 --- a/spot/entrypoints/popup/components/AudioPicker.tsx +++ b/spot/entrypoints/popup/components/AudioPicker.tsx @@ -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"; diff --git a/spot/entrypoints/popup/hooks/useAudioDevices.ts b/spot/entrypoints/popup/hooks/useAudioDevices.ts index 25ae807d3..888831f3a 100644 --- a/spot/entrypoints/popup/hooks/useAudioDevices.ts +++ b/spot/entrypoints/popup/hooks/useAudioDevices.ts @@ -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 || ""); diff --git a/spot/package.json b/spot/package.json index fe9e16ece..14676a2d0 100644 --- a/spot/package.json +++ b/spot/package.json @@ -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",