electron-window-manager
electron-window-manager copied to clipboard
Feature Request: Ability to get the current window's name
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
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 ♥