Skip to content

Commit

Permalink
fix: add changelog and update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
hinakhadim committed Dec 5, 2024
1 parent 1928231 commit 5aff664
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- [BugFix] Add dark-theme for Course Handouts and Course Updates that appears on Learning MFE Course Outline Page (by @hinakhadim)
4 changes: 2 additions & 2 deletions tutorindigo/templates/indigo/env.config.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const AddDarkTheme = () => {
document.body.classList.add('indigo-dark-theme');

observer.observe(document.body, { childList: true, subtree: true });
setTimeout(() => observer?.disconnect(), 15000); // clear after 10 sec to avoid resource usage
setTimeout(() => observer?.disconnect(), 15000); // clear after 15 sec to avoid resource usage

cookies.set(themeCookie, theme, getCookieOptions()); // on page load, update expiry
}
Expand Down Expand Up @@ -98,4 +98,4 @@ const config = {
},
};

export default config;
export default config;

0 comments on commit 5aff664

Please sign in to comment.