diff --git a/src/js/app.js b/src/js/app.js index 534f523c..23ea52a8 100644 --- a/src/js/app.js +++ b/src/js/app.js @@ -152,6 +152,13 @@ if (pskl.devtools) { pskl.devtools.init(); } + + if (pskl.utils.Environment.detectNodeWebkit() && pskl.utils.UserAgent.isMac) { + var gui = require('nw.gui'); + var mb = new gui.Menu({type:'menubar'}); + mb.createMacBuiltin('Piskel'); + gui.Window.get().menu = mb; + } }, loadPiskel_ : function (serializedPiskel, descriptor, fps) {