copay/js/app.js

49 lines
1.0 KiB
JavaScript
Raw Normal View History

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)) {
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
// From the bundle
2014-04-30 08:25:33 -07:00
var copay = require('copay');
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',
'mm.foundation',
2014-03-27 12:43:51 -07:00
'monospaced.qrcode',
'ngIdle',
'copayApp.filters',
2014-06-16 12:46:17 -07:00
'copayApp.services',
2014-06-03 13:42:36 -07:00
'copayApp.controllers',
'copayApp.directives',
2014-03-14 13:38:27 -07:00
]);
2014-03-25 07:35:04 -07:00
2014-07-17 12:53:38 -07:00
copayApp.config(function($sceDelegateProvider) {
$sceDelegateProvider.resourceUrlWhitelist([
'self',
'mailto:**'
]);
});
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', []);
angular.module('copayApp.directives', []);