Reactive Telegram widgets built with svelte
MIT License
Bot releases are hidden (Show)
Full Changelog: https://github.com/amr3k/sveltegram/compare/v1.1.8...v1.1.10
Published by amr3k 11 months ago
dependencies update
Published by amr3k almost 2 years ago
Published by amr3k almost 2 years ago
[Chore] Updated dependencies
Published by amr3k over 2 years ago
Published by amr3k over 2 years ago
This version comes with a small bug fix that occurs when a dev wants to automatically load comments from a channel using <link rel="canonical" href="page_url">
, after changing any property like theme at runtime, the widget fails to load comments.
So I added pageURL
property to the discussion widget which must be the same as the one in <link>
tag, this way it will preserve reactivity at runtime.
Published by amr3k over 2 years ago
Added login widget
This solves #1
Published by amr3k over 2 years ago
Using Telegram script to load the iframe
and adjust its height.
The iframe
then is being reactive with dark mode and color changes.
In the past, I was loading iFrame manually but couldn't adjust its height dynamically due to CORS
.
The current method works well.