Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Ability to get the current window's name #65

Open
dannyrb opened this issue Jun 29, 2018 · 1 comment
Open

Feature Request: Ability to get the current window's name #65

dannyrb opened this issue Jun 29, 2018 · 1 comment

Comments

@dannyrb
Copy link

dannyrb commented Jun 29, 2018

It would be nice if, in a renderer process, you could call something like:

windowManager.getCurrentWindowName()

And have it return the name associated with the BrowserWindow

@refeele
Copy link

refeele commented Sep 26, 2020

const { remote } = require('electron');
var windowManager = remote.require('electron-window-manager');
const thisWindow = windowManager.getById(remote.getCurrentWindow().id);
var windowName = new String(thisWindow.name);
// now you have the window name as windowName

JIC anyone needs it ♥

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants