fix reddit embeds on mobile

master
Aevann 2024-04-08 14:56:29 +02:00
parent 3ba607a003
commit 54a263af02
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@
{% endif %}
{% if p.url and p.url.startswith('https://old.reddit.com/r/') %}
<iframe id="reddit-embed" class="border-0" src="{{p.url.replace('https://old.reddit.com/', 'https://embed.reddit.com/').split('?')[0]}}?context=1&showtitle=true{% if v.theme in DARK_THEMES %}&theme=dark{% endif %}" height="317px" width="640px"></iframe>
<iframe id="reddit-embed" class="border-0" src="{{p.url.replace('https://old.reddit.com/', 'https://embed.reddit.com/').split('?')[0]}}?context=1&showtitle=true{% if v.theme in DARK_THEMES %}&theme=dark{% endif %}" height="317px" width="100%"></iframe>
<script defer src="{{'js/reddit_embed.js' | asset}}"></script>
{% endif %}