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

remove fingerprintjs

This commit is contained in:
Luke Pulverenti 2016-08-19 18:56:32 -04:00
parent c546f03906
commit 1846f1afcf
16 changed files with 24 additions and 1593 deletions

View file

@ -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());
});
});
}