Fix issue in musicMiddleware tests where ipcRenderer is not available
@@ -59,8 +59,10 @@ function pause() {
if (modPlayer && modPlayer.isPlaying) {
modPlayer.stop();
}
+ if (ipcRenderer) {
ipcRenderer.send("close-music");
}
+}
const musicMiddleware: Middleware<Dispatch, RootState> =
(store) => (next) => (action) => {
