mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
remove fingerprintjs
This commit is contained in:
parent
c546f03906
commit
1846f1afcf
16 changed files with 24 additions and 1593 deletions
|
@ -21,12 +21,13 @@ define(['appStorage', 'browser'], function (appStorage, browser) {
|
|||
function generateDeviceId() {
|
||||
return new Promise(function (resolve, reject) {
|
||||
|
||||
require(['fingerprintjs2'], function (Fingerprint2) {
|
||||
require(["cryptojs-sha1"], function () {
|
||||
|
||||
new Fingerprint2().get(function (result, components) {
|
||||
console.log('Generated device id: ' + result); //a hash, representing your device fingerprint
|
||||
resolve(result);
|
||||
});
|
||||
var keys = [];
|
||||
keys.push(navigator.userAgent);
|
||||
keys.push(new Date().getTime());
|
||||
|
||||
resolve(CryptoJS.SHA1(keys.join('|')).toString());
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue