modify inline code to multiple line
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user