fixes in settings
This commit is contained in:
parent
a6f5300b21
commit
425703c447
4 changed files with 19 additions and 24 deletions
15
js/app.js
15
js/app.js
|
|
@ -1,5 +1,20 @@
|
|||
'use strict';
|
||||
|
||||
var config = defaultConfig;
|
||||
var localConfig = JSON.parse(localStorage.getItem('config'));
|
||||
|
||||
if (localConfig) {
|
||||
var count = 0;
|
||||
for (name in localConfig) {
|
||||
if (localConfig.hasOwnProperty(name)) {
|
||||
config[name] = localConfig[name];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var log = function() {
|
||||
if (config.verbose) console.log(arguments);
|
||||
}
|
||||
|
||||
var copay = require('copay');
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('copay.settings').controller('SettingsController',
|
||||
function($scope, $rootScope, $window) {
|
||||
function($scope, $rootScope, $window, $location) {
|
||||
$scope.title = 'Settings';
|
||||
|
||||
$scope.networkName = config.networkName;
|
||||
|
|
@ -31,6 +31,6 @@ angular.module('copay.settings').controller('SettingsController',
|
|||
})
|
||||
);
|
||||
|
||||
$window.location.reload();
|
||||
$window.location.href= $window.location.origin + $window.location.pathname;
|
||||
};
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue