assets/js/coder.js
@@ -75,6 +75,17 @@ }) } function sendMessage(message) { const iframe = document.querySelector('iframe.giscus-frame'); if (!iframe) return; iframe.contentWindow.postMessage({ giscus: message }, 'https://giscus.app'); } sendMessage({ setConfig: { theme: theme, }, }); // Create and send event const event = new Event('themeChanged');