Skip to content

Debug -> Open Chromium DevTools error if no windows open #113

@simonw

Description

@simonw

That menu option expects there to be a focused browser window that it can open into:

datasette-app/main.js

Lines 955 to 960 in 97dd4f6

{
label: "Open Chromium DevTools",
click() {
BrowserWindow.getFocusedWindow().webContents.openDevTools();
},
},

If no windows are open it shows this error:

New_Issue_·_simonw_datasette-app

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions