Skip to content

fix: open DevTools to the Right Instead of Detaching #22

@akhileshthite

Description

@akhileshthite

When inspecting elements in the browser window, the DevTools currently open as a detached window instead of docking to the right as expected. The intended behavior is for DevTools to always open in the right panel, but setting { mode: "right" } does not work properly.

Steps to reproduce:

  • Open the browser.
  • Right-click and select "Inspect".
  • Notice that DevTools detaches instead of docking to the right.
  • Modify webContents.openDevTools({ mode: "right" }) in the code.
    menu.append(

Current behavior:

  • If { mode: "right" } is set, DevTools do not open:
    Image

Possible fix:

  • Ensure DevTools target the correct webContents instance of the webview.
  • Investigate why "right" mode fails and consider alternative approaches

Metadata

Metadata

Assignees

Labels

good first issueGood for newcomerspriority: lowFor minor issues that don’t affect the project in significant ways

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions