mirror of
https://github.com/Eugeny/tabby.git
synced 2025-08-24 02:01:56 +00:00
lint
This commit is contained in:
@@ -6,7 +6,7 @@ export class X11Socket {
|
||||
private socket: Socket | null = null
|
||||
|
||||
static resolveDisplaySpec (spec?: string|null): SocketConnectOpts {
|
||||
// eslint-disable-next-line prefer-const
|
||||
// eslint-disable-next-line prefer-const, @typescript-eslint/no-unused-vars
|
||||
let [_, xHost, xDisplay] = /^(.+):(\d+)(?:.(\d+))$/.exec(spec ?? process.env.DISPLAY ?? 'localhost:0') ?? []
|
||||
if (process.platform === 'win32') {
|
||||
xHost ??= 'localhost'
|
||||
|
Reference in New Issue
Block a user