From 2d3e474725729f8d12d18ee5e62e3f5f199557ab Mon Sep 17 00:00:00 2001 From: RunasSudo Date: Mon, 11 Dec 2017 13:26:31 +1030 Subject: [PATCH] Fail gracefully for fingerprint --- eosweb/core/static/nunjucks/booth/encrypt.html | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/eosweb/core/static/nunjucks/booth/encrypt.html b/eosweb/core/static/nunjucks/booth/encrypt.html index 6e18105..e797030 100644 --- a/eosweb/core/static/nunjucks/booth/encrypt.html +++ b/eosweb/core/static/nunjucks/booth/encrypt.html @@ -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(); }