Change routes to old hastag mode
This commit is contained in:
parent
ae9deaa6f8
commit
e3eeab0eb6
15 changed files with 44 additions and 43 deletions
|
|
@ -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');
|
||||
};
|
||||
});
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ angular
|
|||
.module('copayApp')
|
||||
.config(function($locationProvider) {
|
||||
$locationProvider
|
||||
.html5Mode(true)
|
||||
.html5Mode(false)
|
||||
.hashPrefix('!');
|
||||
})
|
||||
.run(function($rootScope, $location) {
|
||||
|
|
|
|||
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue