mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-12-16 08:56:04 +01:00
Lint Code [skip actions]
This commit is contained in:
@@ -136,9 +136,9 @@ export type CommandResponse = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export type WindowDetails = {
|
export type WindowDetails = {
|
||||||
address: string,
|
address: string;
|
||||||
port: number,
|
port: number;
|
||||||
disable: boolean
|
disable: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -174,11 +174,8 @@ export function getWindowDetails(): WindowDetails {
|
|||||||
const { address, port, disable } = details;
|
const { address, port, disable } = details;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
address: address == "{{DETAILS_ADDRESS}}" ?
|
address: address == "{{DETAILS_ADDRESS}}" ? "127.0.0.1" : address,
|
||||||
"127.0.0.1" : address,
|
port: port == "{{DETAILS_PORT}}" ? 443 : parseInt(port),
|
||||||
port: port == "{{DETAILS_PORT}}" ?
|
disable: disable == "{{DETAILS_DISABLE}}" ? false : disable == "true"
|
||||||
443 : parseInt(port),
|
|
||||||
disable: disable == "{{DETAILS_DISABLE}}" ?
|
|
||||||
false : disable == "true"
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user