From 55f8ae4edd998a4d3897b9e1dd005f61fabefe37 Mon Sep 17 00:00:00 2001 From: Dan Finlay Date: Thu, 24 Mar 2016 10:32:50 -0700 Subject: Add seed word caching during confirmation screen In order to persist the seed word page until the user clicks the confirmation button, we need to store the seed words in localStorage. To simplify this process I've also reorganized some of the account manager code, broken up one large function into many smaller functions, and created a new class for the IdMgmt object. Again, sorry such a big refactor in one commit, but I really had to break it down to work through it. --- app/scripts/background.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'app/scripts/background.js') diff --git a/app/scripts/background.js b/app/scripts/background.js index aa06f27f1..1a0d36ef8 100644 --- a/app/scripts/background.js +++ b/app/scripts/background.js @@ -121,10 +121,11 @@ function linkDnode(stream){ approveTransaction: idStore.approveTransaction.bind(idStore), cancelTransaction: idStore.cancelTransaction.bind(idStore), setLocked: idStore.setLocked.bind(idStore), + clearSeedWordCache: idStore.clearSeedWordCache.bind(idStore), }) stream.pipe(connection).pipe(stream) connection.on('remote', function(remote){ - + // push updates to popup ethStore.on('update', sendUpdate) idStore.on('update', sendUpdate) @@ -208,4 +209,4 @@ function jsonStringifyStream(){ }) } -function noop(){} \ No newline at end of file +function noop(){} -- cgit v1.2.3