1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

modify inline code to multiple line

This commit is contained in:
sancodes 2022-05-20 01:37:11 -07:00
parent e857952ae0
commit 8c11a0131d

View file

@ -75,7 +75,9 @@ function replaceAll(originalString, strReplace, strWith) {
function generateDeviceId() {
const keys = [];
if ((keys.push(navigator.userAgent), keys.push(new Date().getTime()), window.btoa)) {
keys.push(navigator.userAgent);
keys.push(new Date().getTime());
if (window.btoa) {
const result = replaceAll(btoa(keys.join('|')), '=', '1');
return result;
}