From fd983955b4dbdbd612fbdf5ed08d8c8a049fb840 Mon Sep 17 00:00:00 2001 From: Jaquee Date: Wed, 4 Jan 2017 17:25:22 +0100 Subject: view only wallets wizard: fix dots on pw page wizard: fix focus on pw field viewOnly: added success message --- wizard/utils.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'wizard/utils.js') diff --git a/wizard/utils.js b/wizard/utils.js index 7b9fc241..65409046 100644 --- a/wizard/utils.js +++ b/wizard/utils.js @@ -15,3 +15,10 @@ function tr(text) { function lineBreaksToSpaces(text) { return text.trim().replace(/(\r\n|\n|\r)/gm, " "); } + +function usefulName(path) { + // arbitrary "short enough" limit + if (path.length < 32) + return path + return path.replace(/.*[\/\\]/, '').replace(/\.keys$/, '') +} -- cgit v1.2.3