Created
May 11, 2015 14:15
-
-
Save radjivF/d01cb45ee0fa7d9bf462 to your computer and use it in GitHub Desktop.
fix issues copy past on mac (nodewebkit)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var nw = require('nw.gui'); | |
var win = nw.Window.get(); | |
var nativeMenuBar = new nw.Menu({ type: "menubar" }); | |
if (nativeMenuBar.createMacBuiltin) { | |
nativeMenuBar.createMacBuiltin("User-factory"); | |
} | |
win.menu = nativeMenuBar; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment