Skip to content

Commit

Permalink
Merge pull request #388 from IRHM/win-dnotif-patch
Browse files Browse the repository at this point in the history
Windows patches
  • Loading branch information
IRHM authored Jan 27, 2023
2 parents 3a9d585 + 9c25aff commit 63d70c2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion entry/background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ function registerChannels(win: BrowserWindow) {
} else {
// Load the index.html when not in development
await notifWin.loadURL(
`file://${path.join(__dirname, `../../dist/vi/index.html#/dnotif/${args.icon}/${args.desc}`)}`
`file://${path.join(__dirname, `../../dist/vi/index.html`)}#/dnotif/${args.icon}/${args.desc}`
);
}

Expand Down
7 changes: 5 additions & 2 deletions src/settings/pages/Recording.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,15 @@ export default function Recording() {
.then((devices) => {
setAudioDevicesToRecord(
devices.audio.map((ad) => {
return { id: String(ad.id), name: `${ad.name} (${ad.isInput ? "microphone" : "speaker"})` };
return {
id: String(ad.id),
name: `${ad.name} ${ad.isInput !== undefined ? `(${ad.isInput ? "microphone" : "speaker"})` : ""}`
};
})
);
})
.catch((err) => logger.error("Recording", "Failed to get audio devices!", err));
});
}, []);

return (
<>
Expand Down

0 comments on commit 63d70c2

Please sign in to comment.