Skip to content

Silent install of node-export server #146

@PaulDalek

Description

@PaulDalek

Actual behaviour

It seems that when installing node-export server silently, environment variables HIGHCHARTS_USE_MAPS and HIGHCHARTS_USE_STYLED evaluate always to true.

Suggested solution

Replace:

embedAll(process.env.HIGHCHARTS_VERSION || 'latest',
  process.env.HIGHCHARTS_USE_STYLED || true,
  process.env.HIGHCHARTS_USE_MAPS || true,
  process.env.HIGHCHARTS_MOMENT || false
);

with:

embedAll(process.env.HIGHCHARTS_VERSION || 'latest',
  affirmative(process.env.HIGHCHARTS_USE_STYLED),
  affirmative(process.env.HIGHCHARTS_USE_MAPS),
  affirmative(process.env.HIGHCHARTS_MOMENT)
);

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