Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attemp using 'dark' mode has no effect #242

Open
rxu opened this issue Nov 26, 2024 · 0 comments
Open

Attemp using 'dark' mode has no effect #242

rxu opened this issue Nov 26, 2024 · 0 comments

Comments

@rxu
Copy link

rxu commented Nov 26, 2024

Probably misusing the feature, but the story is the following.
text-formatter version: 2.11.5 (the highest possible for phpBB3).
'MEDIAEMBED_THEME' => 'dark' has been added via renderer setup.
Despite that, it doesn't seem to make any effect.
Random example link: https://www.instagram.com/p/CecpgytO2Cr is rendered still in light style. iframe tag is the following:

<iframe data-s9e-mediaembed="instagram" allowfullscreen="" loading="lazy" onload="var c=new MessageChannel;c.port1.onmessage=function(e){style.height=e.data+'px'};contentWindow.postMessage('s9e:init','https://s9e.github.io',[c.port2])" scrolling="no" style="border: 0px; height: 1085px; max-width: 540px; width: 100%;" src="https://s9e.github.io/iframe/2/instagram.min.html#CecpgytO2Cr#theme=dark"></iframe>

theme=dark anchor is there though. At the same time, phpBB cache file (like s9e_renderer_b7ca6995b823aca4a93e8e3adc5dbc41b309136a.php) still contains 'MEDIAEMBED_THEME'=>'' in the list.

Not sure where to dig deeper to debug this. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant