rm unused functions
This commit is contained in:
parent
8d826c9f5d
commit
968c7cc369
1 changed files with 10 additions and 3 deletions
|
|
@ -1,6 +1,6 @@
|
|||
'use strict';
|
||||
angular.module('copayApp.services')
|
||||
.factory('legacyImportService', function($rootScope, $log, $timeout, $http, lodash, bitcore, bwcService, sjcl, profileService) {
|
||||
.factory('legacyImportService', function($rootScope, $log, $timeout, $http, lodash, bitcore, bwcService, sjcl, profileService, isChromeApp) {
|
||||
|
||||
var root = {};
|
||||
var wc = bwcService.getClient();
|
||||
|
|
@ -126,8 +126,15 @@ angular.module('copayApp.services')
|
|||
};
|
||||
|
||||
var localStorageGet = function(key, cb) {
|
||||
var v = localStorage.getItem(key);
|
||||
return cb(null, v);
|
||||
if (isChromeApp) {
|
||||
chrome.storage.local.get(key,
|
||||
function(data) {
|
||||
return cb(null, data[key]);
|
||||
});
|
||||
} else {
|
||||
var v = localStorage.getItem(key);
|
||||
return cb(null, v);
|
||||
}
|
||||
};
|
||||
|
||||
var get = fromCloud ? insightGet : localStorageGet;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue