D
D
Dmitry Kuznetsov2017-07-03 18:56:40
Node.js
Dmitry Kuznetsov, 2017-07-03 18:56:40

How to remove the standard menu in a new window?

There is such a problem:
There is a simple application (empty) written in Electron (electron.atom.io). Through

mainWindow.setMenu(null);

removed the standard menu (which was removed through "Alt"). But the problem is that when creating a new window (as in a simple browser, i.e. a link is opened in a new tab/window), the menu appears again. How to remove it?
I hope I explained it clearly, even though I'm confused myself)))

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
de1m, 2017-07-03
@dima9595

If I understand correctly, then you need the line that is written in bold.

mainWindow = new BrowserWindow({
    resizable: true,
    width: 1200,
    height: 55,
    icon: __dirname + '/img/logo.png',
    autoHideMenuBar: true,
    frame: false,
    show: false
  });

autoHideMenuBar: true

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question