From 5aff664bd5c010effbd8432c849fb3f135e60a22 Mon Sep 17 00:00:00 2001 From: Hina Khadim Date: Thu, 5 Dec 2024 22:50:12 +0500 Subject: [PATCH] fix: add changelog and update comments --- .../20241205_224820_hina.khadim_dark_theme_course_handouts.md | 1 + tutorindigo/templates/indigo/env.config.jsx | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 changelog.d/20241205_224820_hina.khadim_dark_theme_course_handouts.md diff --git a/changelog.d/20241205_224820_hina.khadim_dark_theme_course_handouts.md b/changelog.d/20241205_224820_hina.khadim_dark_theme_course_handouts.md new file mode 100644 index 000000000..e262f50a7 --- /dev/null +++ b/changelog.d/20241205_224820_hina.khadim_dark_theme_course_handouts.md @@ -0,0 +1 @@ +- [BugFix] Add dark-theme for Course Handouts and Course Updates that appears on Learning MFE Course Outline Page (by @hinakhadim) \ No newline at end of file diff --git a/tutorindigo/templates/indigo/env.config.jsx b/tutorindigo/templates/indigo/env.config.jsx index dc295c95a..dd0330b40 100644 --- a/tutorindigo/templates/indigo/env.config.jsx +++ b/tutorindigo/templates/indigo/env.config.jsx @@ -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 } @@ -98,4 +98,4 @@ const config = { }, }; -export default config; \ No newline at end of file +export default config;