diff --git a/js/controllers/settings.js b/js/controllers/settings.js index c8f1532f8..4a09d30b3 100644 --- a/js/controllers/settings.js +++ b/js/controllers/settings.js @@ -74,8 +74,6 @@ angular.module('copayApp.controllers').controller('SettingsController', unitToSatoshi: $scope.selectedUnit.value, })); - var target = ($window.location.origin !== 'null' ? $window.location.origin : ''); - - $window.location.href = target; + $location.path('/copayers'); }; }); diff --git a/js/routes.js b/js/routes.js index 3f7308341..9db46fdc1 100644 --- a/js/routes.js +++ b/js/routes.js @@ -67,7 +67,7 @@ angular .module('copayApp') .config(function($locationProvider) { $locationProvider - .html5Mode(true) + .html5Mode(false) .hashPrefix('!'); }) .run(function($rootScope, $location) { diff --git a/js/services/uriHandler.js b/js/services/uriHandler.js index 59a8304c0..da67ab4be 100644 --- a/js/services/uriHandler.js +++ b/js/services/uriHandler.js @@ -5,7 +5,10 @@ var UriHandler = function() {}; UriHandler.prototype.register = function() { var base = window.location.origin + '/'; var url = base + '#/uri-payment/%s'; - navigator.registerProtocolHandler('bitcoin', url, 'Copay'); + + if(navigator.registerProtocolHandler) { + navigator.registerProtocolHandler('bitcoin', url, 'Copay'); + } }; angular.module('copayApp.services').value('uriHandler', new UriHandler()); diff --git a/views/copayers.html b/views/copayers.html index 593299d66..9df0df307 100644 --- a/views/copayers.html +++ b/views/copayers.html @@ -2,7 +2,7 @@