Merge pull request #2773 from cmgustavo/feat/copay-desktop
Feat/copay desktop
This commit is contained in:
commit
decca68a63
14 changed files with 123 additions and 81 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue