Representing Files in a BrowserWindow (macOS)
You can also set the edited state for a window so that the file icon can indicate whether the document in this window has been modified.
Example
After launching the Electron application, click on the title with or key pressed. You should see a popup with the represented file at the top. In this guide, this is the current user’s home directory: