replace href to ng-click in sidebars. add hack to close sidebars
This commit is contained in:
parent
a115a6d17a
commit
eeab451bbc
9 changed files with 38 additions and 32 deletions
|
|
@ -1,14 +1,13 @@
|
|||
'use strict';
|
||||
angular.module('copayApp.services')
|
||||
.factory('applicationService', function($rootScope, $location, $timeout) {
|
||||
.factory('applicationService', function($rootScope, $location, $timeout, go) {
|
||||
var root = {};
|
||||
var isChromeApp = window.chrome && chrome.runtime && chrome.runtime.id;
|
||||
|
||||
root.restart = function() {
|
||||
if (1 || window.cordova !== undefined) {
|
||||
$rootScope.iden = $rootScope.wallet = undefined;
|
||||
// NOP. no need to restart on cordova apps.
|
||||
$location.path('/');
|
||||
go.go('/');
|
||||
$timeout(function(){
|
||||
$rootScope.$digest();
|
||||
},1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue