Change routes to old hastag mode

This commit is contained in:
Yemel Jardi 2014-07-29 14:13:21 -03:00
commit e3eeab0eb6
15 changed files with 44 additions and 43 deletions

View file

@ -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');
};
});

View file

@ -67,7 +67,7 @@ angular
.module('copayApp')
.config(function($locationProvider) {
$locationProvider
.html5Mode(true)
.html5Mode(false)
.hashPrefix('!');
})
.run(function($rootScope, $location) {

View file

@ -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());