Fixes restart desktop app
This commit is contained in:
parent
8cd4430479
commit
0c353078c1
1 changed files with 9 additions and 11 deletions
|
|
@ -14,17 +14,15 @@ 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();
|
||||||
go.walletHome();
|
} else if (nodeWebkit.isDefined()) {
|
||||||
$timeout(function() {
|
go.walletHome();
|
||||||
var win = require('nw.gui').Window.get();
|
$timeout(function() {
|
||||||
win.reload(3);
|
var win = require('nw.gui').Window.get();
|
||||||
//or
|
win.reload(3);
|
||||||
win.reloadDev();
|
//or
|
||||||
}, 100);
|
win.reloadDev();
|
||||||
} else {
|
}, 100);
|
||||||
chrome.runtime.reload();
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
window.location = window.location.href.substr(0, hashIndex);
|
window.location = window.location.href.substr(0, hashIndex);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue