Import Old wallets from localStorage

This commit is contained in:
Gustavo Maximiliano Cortez 2014-10-30 16:13:56 -03:00
commit 965d3e1d96
13 changed files with 67 additions and 81 deletions

View file

@ -1,5 +1,13 @@
'use strict';
angular.module('copayApp.services').factory('Compatibility', function() {
return require('copay').Compatibility;
angular.module('copayApp.services').factory('Compatibility', function($rootScope) {
var root = {};
root.check = function (scope) {
copay.Compatibility.listWalletsPre8(function(wallets) {
scope.anyWallet = wallets.length > 0 ? true : false;
scope.oldWallets = wallets;
});
};
return root;
});