From 01cd2050d2206343ee31f17abe08ba635183d68c Mon Sep 17 00:00:00 2001 From: MIMIZA Date: Mon, 22 Jun 2020 08:59:39 +0700 Subject: [PATCH] improve sea.js Removed the small try/catch in recall() because there is already a bigger try/catch. --- sea.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/sea.js b/sea.js index dbade2bb..e2418d1e 100644 --- a/sea.js +++ b/sea.js @@ -1008,11 +1008,7 @@ if(sS){ (root._).opt.remember = true; ((gun.back('user')._).opt||opt).remember = true; - if(sS.recall || sS.pair){ - try{ - root.user().auth(JSON.parse(sS.pair), cb); // pair is more reliable than alias/pass - }catch(e){} - } + if(sS.recall || sS.pair) root.user().auth(JSON.parse(sS.pair), cb); // pair is more reliable than alias/pass } }catch(e){} }