From 2a122f4b4750e6eb99d44c703644b338de0713a1 Mon Sep 17 00:00:00 2001 From: Yemel Jardi Date: Mon, 4 Aug 2014 17:13:24 -0300 Subject: [PATCH] Go home after saving settings --- js/controllers/settings.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/controllers/settings.js b/js/controllers/settings.js index 90128de34..60d1749d1 100644 --- a/js/controllers/settings.js +++ b/js/controllers/settings.js @@ -74,6 +74,8 @@ angular.module('copayApp.controllers').controller('SettingsController', unitToSatoshi: $scope.selectedUnit.value, })); - window.location.reload(); + // Go home reloading the application + var hashIndex = window.location.href.indexOf('#!/'); + window.location = window.location.href.substr(0, hashIndex); }; });