Skip to content

When useCDN option is set to true, dark mode does not work #374

@WasiqB

Description

@WasiqB

Environment (please complete the following information)

  • multiple-cucumber-html-reporter: 3.7.0
  • Node.js version: 18.20.4
  • NPM version: 10.8.2
  • Platform name and version: Mac OS 14
  • Cucumber version: NA

Config of multiple-cucumber-html-reporter

Config has useCDN property set to true

Describe the bug

When you try to toggle the report to dark mode, nothing happens.
Following Error is thrown in the console window in Chrome DevTools:

Uncaught ReferenceError: applyDarkMode is not defined

To Reproduce

  • Set useCDN property to true in the report options.
  • Generate the report
  • Click on dark mode toggle

Expected behaviour

Site theme should change to dark mode.

Log

Uncaught ReferenceError: applyDarkMode is not defined

Additional context

NA

Metadata

Metadata

Assignees

Labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions