fix hidden sidebars in cordova
This commit is contained in:
parent
856ebce534
commit
4be558d143
5 changed files with 17 additions and 7 deletions
|
|
@ -1,11 +1,11 @@
|
|||
'use strict';
|
||||
angular.module('copayApp.services')
|
||||
.factory('applicationService', function($rootScope, $location, $timeout, go) {
|
||||
.factory('applicationService', function($rootScope, $location, $timeout, go, isCordova) {
|
||||
var root = {};
|
||||
var isChromeApp = window.chrome && chrome.runtime && chrome.runtime.id;
|
||||
|
||||
root.restart = function() {
|
||||
if (1 || window.cordova !== undefined) {
|
||||
if (isCordova) {
|
||||
$rootScope.iden = $rootScope.wallet = undefined;
|
||||
go.go('/');
|
||||
$timeout(function(){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue