refactoring and minor palette changes

This commit is contained in:
2023-01-08 13:39:34 +01:00
parent 6b6e2386af
commit e590714391
4 changed files with 75 additions and 60 deletions

View File

@@ -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}`
}