From 287f30cbacaeb8e4087cfb780782e7b995b55972 Mon Sep 17 00:00:00 2001 From: Stewart Henderson Date: Mon, 4 Apr 2016 13:46:07 -0500 Subject: [PATCH 1/2] Update for shared passwords from another account --- export2.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/export2.js b/export2.js index a754615..5cfdf5b 100644 --- a/export2.js +++ b/export2.js @@ -17,7 +17,11 @@ function processItem(i){ if(typeof(username_fill)==undefined) return; // wait until item loads clearInterval(inter); console.log( i + "\t"+addSpaces(30,title_fill.value) + addSpaces(30,username_fill.value) + password_fill.value); // print item to see progress - result.push( [ url_fill.value, title_fill.value, username_fill.value, "" , password_fill.value,"" , memo_fill.value ]); // add values to results array to be converted into csv file. Empty values should be empty strings, don't use null or leave blank + try { + result.push( [ url_fill.value, title_fill.value, username_fill.value, "" , password_fill.value,"" , memo_fill.value ]); // add values to results array to be converted into csv file. Empty values should be empty strings, don't use null or leave blank + catch(e) { + //don't care + } bt_passwordbox.click(); // return to main view inter2 = setInterval(function(){ if(items.length == 0) return; // wait until main view loads From 9503eba9135a24e9dbf8c4ed68aa5e7dd860339a Mon Sep 17 00:00:00 2001 From: Stewart Henderson Date: Mon, 4 Apr 2016 13:55:38 -0500 Subject: [PATCH 2/2] Tweak --- export2.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/export2.js b/export2.js index 5cfdf5b..bd2779d 100644 --- a/export2.js +++ b/export2.js @@ -17,10 +17,8 @@ function processItem(i){ if(typeof(username_fill)==undefined) return; // wait until item loads clearInterval(inter); console.log( i + "\t"+addSpaces(30,title_fill.value) + addSpaces(30,username_fill.value) + password_fill.value); // print item to see progress - try { + if(typeof memo_fill != 'undefined') { result.push( [ url_fill.value, title_fill.value, username_fill.value, "" , password_fill.value,"" , memo_fill.value ]); // add values to results array to be converted into csv file. Empty values should be empty strings, don't use null or leave blank - catch(e) { - //don't care } bt_passwordbox.click(); // return to main view inter2 = setInterval(function(){