Skip to content

Conflict with zoomWheel extension #127

@kenime

Description

@kenime

my JSON viewer was not working and I digged into the code. Turns on another extension "zoomWheel" creates 2 elements under document.body.childNodes, so when JSON viewer is executing getPreWithSource(), the following checking will fail and not considering the page as JSON.

var childNodes = document.body.childNodes;

  if (childNodes.length === 1) {

Would there be any impact if we loosen the checking as childNodes.length > 0 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions