Fail gracefully for fingerprint
This commit is contained in:
parent
5740f33b7d
commit
2d3e474725
@ -41,11 +41,16 @@
|
||||
// String.prototype.join confuses fingerprintjs2
|
||||
var strjoin = String.prototype.join;
|
||||
String.prototype.join = undefined;
|
||||
new Fingerprint2().get(function(result, components) {
|
||||
String.prototype.join = strjoin;
|
||||
booth.fingerprint = components;
|
||||
try {
|
||||
new Fingerprint2().get(function(result, components) {
|
||||
String.prototype.join = strjoin;
|
||||
booth.fingerprint = components;
|
||||
nextTemplate();
|
||||
});
|
||||
} catch (ex) {
|
||||
console.error(ex);
|
||||
nextTemplate();
|
||||
});
|
||||
}
|
||||
} else {
|
||||
nextTemplate();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user