diff --git a/frontend/src/store/store.ts b/frontend/src/store/store.ts index 38f9b540b06ed8c795228c3649b9341408460583..0738c7862ea8239ba254209783707db12434c693 100644 --- a/frontend/src/store/store.ts +++ b/frontend/src/store/store.ts @@ -57,7 +57,8 @@ export const store = configureStore({ ], }); -store.dispatch(connect("wss://mpvsync.de:8432/")); -sagaMiddleware.run(rootSaga); +const path = window.location.pathname +store.dispatch(connect("wss://mpvsync.de:8432/" + path)); +sagaMiddleware.run(mySaga); export type RootState = ReturnType<typeof store.getState>;