WasiqB/multiple-cucumber-html-reporter

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

Closed this issue · 0 comments

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