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

@@ -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;