Merge pull request #2773 from cmgustavo/feat/copay-desktop

Feat/copay desktop
This commit is contained in:
Matias Alejo Garcia 2015-05-28 15:13:46 -03:00
commit decca68a63
14 changed files with 123 additions and 81 deletions

View file

@ -374,7 +374,7 @@ angular
needProfile: false
});
})
.run(function($rootScope, $state, $log, gettextCatalog, uriHandler, isCordova, amMoment, profileService, $timeout) {
.run(function($rootScope, $state, $log, gettextCatalog, uriHandler, isCordova, amMoment, profileService, $timeout, nodeWebkit) {
FastClick.attach(document.body);
// Auto-detect browser language
@ -396,6 +396,18 @@ angular
uriHandler.register();
}
if (nodeWebkit.isDefined()) {
var gui = require('nw.gui');
var win = gui.Window.get();
var nativeMenuBar = new gui.Menu({ type: "menubar" });
try {
nativeMenuBar.createMacBuiltin("Copay");
} catch(e) {
$log.debug('This is not OSX');
}
win.menu = nativeMenuBar;
}
var pageWeight = {
walletHome: 0,
copayers: -1,