Windows 7 Devtools图标未显示在节点webkit应用程序中-windows 7
我正在使用node webkit构建一个应用程序。在index.html文件中,我添加了以下代码,以确保在节点应用程序的工具栏中获得devtool/setting图标:Windows 7 Devtools图标未显示在节点webkit应用程序中-windows 7,windows-7,node-webkit,devtools,Windows 7,Node Webkit,Devtools,我正在使用node webkit构建一个应用程序。在index.html文件中,我添加了以下代码,以确保在节点应用程序的工具栏中获得devtool/setting图标: var gui = require('nw.gui'); var win = gui.Window.get(), nativeMenuBar = new gui.Menu({ type: "menubar" }); // check operating system for the menu if (pro
var gui = require('nw.gui');
var win = gui.Window.get(),
nativeMenuBar = new gui.Menu({
type: "menubar"
});
// check operating system for the menu
if (process.platform === "darwin") {
nativeMenuBar.createMacBuiltin("Your App Name");
}
// actually assign menu to window
win.menu = nativeMenuBar;
…通过上面的代码,我可以在mac和linux ubuntu中显示devtools/设置图标,但win 7不适用,在win 7中打开相同的应用时,没有显示设置/devtools图标
是否有任何修复程序可以确保devtool图标出现在我的节点应用程序的工具栏中,而不考虑操作系统(mac、win或linux)