2014-03-14 13:38:27 -07:00
|
|
|
'use strict';
|
|
|
|
|
2014-05-16 08:40:26 -07:00
|
|
|
var config = defaultConfig;
|
|
|
|
var localConfig = JSON.parse(localStorage.getItem('config'));
|
|
|
|
|
|
|
|
if (localConfig) {
|
|
|
|
var count = 0;
|
|
|
|
for (name in localConfig) {
|
|
|
|
if (localConfig.hasOwnProperty(name)) {
|
2014-07-08 14:53:02 -07:00
|
|
|
if (name === 'networkName' && config['forceNetwork']) {
|
|
|
|
continue;
|
|
|
|
}
|
2014-05-16 08:40:26 -07:00
|
|
|
config[name] = localConfig[name];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
var log = function() {
|
|
|
|
if (config.verbose) console.log(arguments);
|
|
|
|
}
|
2014-04-30 08:25:33 -07:00
|
|
|
|
2014-06-03 12:39:06 -07:00
|
|
|
// From the bundle
|
2014-04-30 08:25:33 -07:00
|
|
|
var copay = require('copay');
|
|
|
|
|
2014-06-24 08:36:32 -07:00
|
|
|
var copayApp = window.copayApp = angular.module('copayApp', [
|
2014-03-19 09:17:18 -07:00
|
|
|
'ngRoute',
|
2014-05-16 13:18:25 -07:00
|
|
|
'angularMoment',
|
2014-03-27 08:07:10 -07:00
|
|
|
'mm.foundation',
|
2014-03-27 12:43:51 -07:00
|
|
|
'monospaced.qrcode',
|
2014-06-03 12:39:06 -07:00
|
|
|
'copayApp.filters',
|
2014-06-16 12:46:17 -07:00
|
|
|
'copayApp.services',
|
2014-06-03 13:42:36 -07:00
|
|
|
'copayApp.controllers',
|
2014-06-03 12:39:06 -07:00
|
|
|
'copayApp.directives',
|
2014-03-14 13:38:27 -07:00
|
|
|
]);
|
2014-03-25 07:35:04 -07:00
|
|
|
|
2014-06-03 13:42:36 -07:00
|
|
|
angular.module('copayApp.filters', []);
|
2014-06-16 12:46:17 -07:00
|
|
|
angular.module('copayApp.services', []);
|
2014-06-03 13:42:36 -07:00
|
|
|
angular.module('copayApp.controllers', []);
|
2014-06-03 12:39:06 -07:00
|
|
|
angular.module('copayApp.directives', []);
|