You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I want to change the theme at runtime, but I got the following error when loading the iframe lazily (loading="lazy").
index.ts:13 Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://giscus.app') does not match the recipient window's origin ('http://localhost:13131').
So I'm wondering if there is an option to add the onload attribute on the <iframe>, so that I could be aware whether the iframe is ready to change theme.
Use case: I have a dark/light toggle button on my UI, users can change the color at will. I need to adjust giscus theme to the UI color at the first load.
The text was updated successfully, but these errors were encountered:
Hi, I want to change the theme at runtime, but I got the following error when loading the iframe lazily (
loading="lazy"
).So I'm wondering if there is an option to add the
onload
attribute on the<iframe>
, so that I could be aware whether the iframe is ready to change theme.Use case: I have a dark/light toggle button on my UI, users can change the color at will. I need to adjust giscus theme to the UI color at the first load.
The text was updated successfully, but these errors were encountered: