Skip to content

Add API to force DevDocs into desktop mode #1157

@dteoh

Description

@dteoh

I maintain an unofficial viewer (devdocs-macos) and would like to request an API that can force DevDocs to always use the desktop views. For example, something like:

app.useDesktopView()

Right now I have to patch various DevDocs internals (app.isMobile, app.views.Mobile.detect) but it would be great to get a non-hacky solution. The patching I do is not stable and requires me to race before DevDocs's initialization happens.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions