Wallet/js/services/applicationService.js

17 lines
439 B
JavaScript
Raw Normal View History

2014-11-30 00:31:17 -03:00
'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;
});