refactoring and minor palette changes
This commit is contained in:
@@ -103,4 +103,8 @@ export function toFormatArgs(codes: string[]): string {
|
||||
return ` -f ${codes[0]}`;
|
||||
}
|
||||
return '';
|
||||
}
|
||||
|
||||
export function getWebSocketEndpoint() {
|
||||
return `${window.location.protocol}//${localStorage.getItem('server-addr') || window.location.hostname}:${localStorage.getItem('server-port') || window.location.port}`
|
||||
}
|
||||
Reference in New Issue
Block a user