mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-10-21 05:01:26 -07:00
feat(config): add configuration window (#70)
This commit is contained in:
1 parent
a54f03f0cd
commit
dc52bc2fba
287 files changed
+14506
-8133
No files matched your search
@@ -1,4 +1,5 @@
|
||||
import type { MpvRuntimeClientLike } from '../../core/services/mpv';
|
||||
import { getDefaultMpvSocketPath } from '../../shared/mpv-socket-path';
|
||||
|
||||
export function createApplyJellyfinMpvDefaultsHandler(deps: {
|
||||
sendMpvCommandRuntime: (client: MpvRuntimeClientLike, command: [string, string, string]) => void;
|
||||
@@ -17,9 +18,6 @@ export function createApplyJellyfinMpvDefaultsHandler(deps: {
|
||||
|
||||
export function createGetDefaultSocketPathHandler(deps: { platform: string }) {
|
||||
return (): string => {
|
||||
if (deps.platform === 'win32') {
|
||||
return '\\\\.\\pipe\\subminer-socket';
|
||||
}
|
||||
return '/tmp/subminer-socket';
|
||||
return getDefaultMpvSocketPath(deps.platform as NodeJS.Platform);
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user