Fixes restart desktop app

This commit is contained in:
Gustavo Maximiliano Cortez 2015-10-28 11:28:12 -03:00
commit 0c353078c1
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF

View file

@ -14,7 +14,8 @@ angular.module('copayApp.services')
} else { } else {
// Go home reloading the application // Go home reloading the application
if (isChromeApp) { if (isChromeApp) {
if (nodeWebkit.isDefined()) { chrome.runtime.reload();
} else if (nodeWebkit.isDefined()) {
go.walletHome(); go.walletHome();
$timeout(function() { $timeout(function() {
var win = require('nw.gui').Window.get(); var win = require('nw.gui').Window.get();
@ -22,9 +23,6 @@ angular.module('copayApp.services')
//or //or
win.reloadDev(); win.reloadDev();
}, 100); }, 100);
} else {
chrome.runtime.reload();
}
} else { } else {
window.location = window.location.href.substr(0, hashIndex); window.location = window.location.href.substr(0, hashIndex);
} }