Wallet/js/app.js

48 lines
1 KiB
JavaScript
Raw Normal View History

2014-03-14 17:38:27 -03:00
'use strict';
2014-05-16 12:40:26 -03: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 12:40:26 -03:00
config[name] = localConfig[name];
}
}
}
var log = function() {
if (config.verbose) console.log(arguments);
}
2014-04-30 12:25:33 -03:00
// From the bundle
2014-04-30 12:25:33 -03:00
var copay = require('copay');
var copayApp = window.copayApp = angular.module('copayApp', [
2014-03-19 13:17:18 -03:00
'ngRoute',
2014-05-16 13:18:25 -07:00
'angularMoment',
'mm.foundation',
2014-03-27 16:43:51 -03:00
'monospaced.qrcode',
'ngIdle',
'copayApp.filters',
2014-06-16 16:46:17 -03:00
'copayApp.services',
2014-06-03 17:42:36 -03:00
'copayApp.controllers',
'copayApp.directives',
2014-03-14 17:38:27 -03:00
]);
2014-03-25 11:35:04 -03:00
2014-07-17 16:53:38 -03:00
copayApp.config(function($sceDelegateProvider) {
$sceDelegateProvider.resourceUrlWhitelist([
'self',
'mailto:**'
]);
});
2014-06-03 17:42:36 -03:00
angular.module('copayApp.filters', []);
2014-06-16 16:46:17 -03:00
angular.module('copayApp.services', []);
2014-06-03 17:42:36 -03:00
angular.module('copayApp.controllers', []);
angular.module('copayApp.directives', []);