Problem/Motivation

I've installed Darkmode JS dev version on my project (D10) and found that it doesn't work at all.

The problems occur in the main JS file. I removed the following code and darkmode works well:

  // Check if the Darkmode library is available.
  if (typeof Darkmode !== 'undefined') {
    return;
  }

This file requires refactoring before the new release is created.

Issue fork darkmode-3396581

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Panchuk created an issue. See original summary.

o_timoshchuk’s picture

Assigned: Unassigned » o_timoshchuk

o_timoshchuk’s picture

Assigned: o_timoshchuk » Unassigned
Status: Active » Needs review

The js file changed

bobi-mel made their first commit to this issue’s fork.

bobi-mel’s picture

Status: Needs review » Fixed

Thanks guys for your test and contribution, merged fixes into dev branch after tests on local env.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.