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

fix no-sequence lint

This commit is contained in:
sancodes 2022-04-30 13:04:58 -07:00
parent ed8b274dbf
commit 9f19170dec
8 changed files with 11 additions and 11 deletions

View file

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