Update README.md

This commit is contained in:
i.j 2024-02-16 18:58:56 +00:00
parent cf0cdadff2
commit f519a1963b

View File

@ -72,7 +72,7 @@ const myTimeline = new MastodonTimeline();
By default it will show a timeline with 20 posts from the instance [mastodon.social](https://mastodon.social/public/local) By default it will show a timeline with 20 posts from the instance [mastodon.social](https://mastodon.social/public/local)
If you are trying to initialize the script before `mastodon-timeline.js` is loaded, you will probably get such an error: "MastodonTimeline is not defined". To fix that initialize the script by running: If you are trying to initialize the script before `mastodon-timeline.js` is loaded, you will probably get such an error: "_MastodonTimeline is not defined_". To fix that initialize the script by running:
```js ```js
window.addEventListener("load", () => { window.addEventListener("load", () => {