Wallet/js/services/applicationService.js
Matias Alejo Garcia 3ae6378678 identity now emits!
2014-11-30 22:41:21 -03:00

17 lines
439 B
JavaScript

'use strict';
angular.module('copayApp.services')
.factory('applicationService', function() {
var root = {};
root.restart = function() {
// Go home reloading the application
var hashIndex = window.location.href.indexOf('#!/');
window.location = window.location.href.substr(0, hashIndex);
};
root.reload = function() {
window.location.reload();
};
return root;
});