pbaity / rocketchat-dark-mode

An easy user-togglable dark mode for Rocket.Chat
MIT License
369 stars 126 forks source link

Rocket.Chat 3.14.0 - CSS/JS doesn't appear to load? #137

Closed philliml74 closed 3 years ago

philliml74 commented 3 years ago

Describe the bug CSS and JS do not appear to be working in 3.14.0

To Reproduce Steps to reproduce the behavior:

  1. Goto Administration
  2. Goto Layout
  3. Open Custom CSS
  4. Paste CSS from 'master' branch
  5. Open Custom Script
  6. Paste JS from 'master' branch

Expected behavior The toggle image to appear after a refresh and clear of browser cache.

Screenshots image image image

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context running a docker version of rocket.chat via https://docs.rocket.chat/installation/docker-containers/docker-compose

Version 3.14.0 Apps Engine Version 1.25.0 Node Version v12.22.1 Database Migration 222 (May 6, 2021 6:30 PM) MongoDB 4.0.24 / mmapv1 (oplog Enabled) Commit Details HEAD: (1255c8f0c) Branch: HEAD

fdellwing commented 3 years ago

It seems like you pasted the script in the wrong area (Custom Script for Logout Flow). It has to go into Custom Script for Logged in Users.

philliml74 commented 3 years ago

Well, um, well...thank you for pointing that out. I have corrected that and now it just works.