diff --git a/src/components/apphost.js b/src/components/apphost.js index 27cce3dda0..337e346df2 100644 --- a/src/components/apphost.js +++ b/src/components/apphost.js @@ -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; }