This commit is contained in:
Gabe Kangas
2022-03-06 17:39:52 -08:00
committed by GitHub
parent 6cd1687916
commit 17eca14be4
4 changed files with 67 additions and 1 deletions

View File

@@ -25,6 +25,9 @@ export const SERVER_CONFIG_UPDATE_URL = `${API_LOCATION}config`;
// Get viewer count over time
export const VIEWERS_OVER_TIME = `${API_LOCATION}viewersOverTime`;
// Get active viewer details
export const ACTIVE_VIEWER_DETAILS = `${API_LOCATION}viewers`;
// Get currently connected chat clients
export const CONNECTED_CLIENTS = `${API_LOCATION}chat/clients`;

View File

@@ -56,6 +56,9 @@ export function formatUAstring(uaString: string) {
const { version: osVersion, name: osName } = os;
const { model, type } = device;
if (uaString === 'libmpv') {
return 'mpv media player';
}
// Fallback to just displaying the raw agent string.
if (!name || !browserVersion || !osName) {
return uaString;