Closed shidel-dev closed 9 years ago
I prefer this way too. I tried several solutions after looking at the nw documentation but I didn't find this one.
Thanks!
But with this solution, the title of the Application is "node-webkit". How to change that?
And maybe we can test the platform : createMacBuiltin
will makes the app crash on other system.
Indeed, this approach is much cleaner. We stil need to be able to run the app outside of node-webkit, for debugging purposes, so new $scope.gui.Menu({ type: "menubar" });
needs to be wrapped in a condition to check if $scope.gui
is available.
@Crash-- I found the solution to the application title problem, https://github.com/auchenberg/chrome-devtools-app/issues/10
Thanks for the contribution :)
@auchenberg for debugging, why not just set the toolbar to true in the package.json so that the devtools in node webkit can be used?
You can sure that when debugging, or call the debug method which opens the DevTools. We do want to hide the default browser UI, so that's why toolbar
is false
.
This will close #5.
Adds window and edit menus for osx. This enables minimize, quit, close, copy, paste etc..
I recommend this solution over adding a keyboard event and calling close manually as suggested in #7. The operating system has already implemented this for us.