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:
parent
e857952ae0
commit
8c11a0131d
1 changed files with 3 additions and 1 deletions
|
@ -75,7 +75,9 @@ function replaceAll(originalString, strReplace, strWith) {
|
||||||
function generateDeviceId() {
|
function generateDeviceId() {
|
||||||
const keys = [];
|
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');
|
const result = replaceAll(btoa(keys.join('|')), '=', '1');
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue