diff --git a/worklenz-frontend/public/js/hubspot.js b/worklenz-frontend/public/js/hubspot.js index 0929ee7c..f99d8a16 100644 --- a/worklenz-frontend/public/js/hubspot.js +++ b/worklenz-frontend/public/js/hubspot.js @@ -15,7 +15,7 @@ class HubSpotManager { * Load HubSpot script with dark mode support */ init() { - if (!this.isProduction) return; + // if (!this.isProduction) return; const loadHubSpot = () => { const script = document.createElement('script'); @@ -52,6 +52,7 @@ class HubSpotManager { existingStyle.remove(); } + // Apply dark mode CSS if dark theme is active if (isDark) { this.injectDarkModeCSS(); } @@ -121,4 +122,11 @@ document.addEventListener('DOMContentLoaded', () => { // Make available globally for potential cleanup window.HubSpotManager = hubspot; -}); \ No newline at end of file +}); + +// Add this style to ensure the chat widget uses the light color scheme +(function() { + var style = document.createElement('style'); + style.innerHTML = '#hubspot-messages-iframe-container { color-scheme: light !important; }'; + document.head.appendChild(style); +})(); \ No newline at end of file