diff --git a/plugins/multi-scrobbler/src/sidebar.tsx b/plugins/multi-scrobbler/src/sidebar.tsx index aab6671..8fee40b 100644 --- a/plugins/multi-scrobbler/src/sidebar.tsx +++ b/plugins/multi-scrobbler/src/sidebar.tsx @@ -51,7 +51,7 @@ function patchPanelUI(tabs, patches) { patches.push( after( "default", - bunny?.metro?.findByNameLazy("UserSettingsOverviewWrapper", false), + bunny?.metro?.findByPropsLazy(["renderTitle", "sections"], false), (_, ret) => { const UserSettingsOverview = findInReactTree( ret.props.children, diff --git a/plugins/multi-scrobbler/src/ui/pages/Settings.tsx b/plugins/multi-scrobbler/src/ui/pages/Settings.tsx index 7724919..9ee887c 100644 --- a/plugins/multi-scrobbler/src/ui/pages/Settings.tsx +++ b/plugins/multi-scrobbler/src/ui/pages/Settings.tsx @@ -33,7 +33,7 @@ plugin.storage.librefmUsername ??= ""; plugin.storage.librefmApiKey ??= ""; plugin.storage.listenbrainzUsername ??= ""; plugin.storage.listenbrainzToken ??= ""; -plugin.storage.addToSidebar ??= true; +plugin.storage.addToSidebar ??= false; plugin.storage.showLargeText ??= true; plugin.storage.showLargeText ??= true; @@ -585,11 +585,7 @@ export default function Settings() { { - set("addToSidebar", value); - forceUpdate(); - }} + value={false} /> diff --git a/scripts/serve.mjs b/scripts/serve.mjs index 52f0854..185c25f 100755 --- a/scripts/serve.mjs +++ b/scripts/serve.mjs @@ -344,8 +344,8 @@ async function main() { console.clear(); // Configuration - const distPath = path.join(__dirname, "dist"); - const port = process.env.PORT || 3000; + const distPath = path.join(__dirname, "..", "dist"); + const port = process.env.PORT || 1400; const host = "0.0.0.0"; const primaryIP = getPrimaryIP(); const allInterfaces = getAllNetworkInterfaces();