clear history on settings
This commit is contained in:
parent
3b2b7358b8
commit
3e8ce8854f
7 changed files with 15 additions and 7 deletions
|
|
@ -1,6 +1,6 @@
|
|||
'use strict';
|
||||
angular.module('copayApp.services')
|
||||
.factory('applicationService', function($rootScope, $timeout, platformInfo, $state) {
|
||||
.factory('applicationService', function($rootScope, $timeout, $ionicHistory, platformInfo, $state) {
|
||||
var root = {};
|
||||
|
||||
var isChromeApp = platformInfo.isChromeApp;
|
||||
|
|
@ -19,6 +19,7 @@ angular.module('copayApp.services')
|
|||
if (isChromeApp) {
|
||||
chrome.runtime.reload();
|
||||
} else if (isNW) {
|
||||
$ionicHistory.clearHistory();
|
||||
$state.go('tabs.home');
|
||||
$timeout(function() {
|
||||
var win = require('nw.gui').Window.get();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue