Skip to content

debug/browser throws when used in electron preload scripts #303

@Pupix

Description

@Pupix

As the title says, when logging, the debug/browser file checks here for WebkitAppearance in document.documentElement.style , but at that time in the page's lifecycle documentElement is not yet defined and I get this
TypeError: Cannot read property 'style' of null.

Guess there could be a check for chromium based apps, where if both document and process exist, you are good to go.

Cheers,
Pupix

Metadata

Metadata

Assignees

No one assigned

    Labels

    has-prThis issue has an accompanying pull request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions