Обновить README.md
This commit is contained in:
parent
81aca40016
commit
16cfc341f5
|
@ -19,11 +19,11 @@ Module for creating "hot lines"
|
||||||
</section>
|
</section>
|
||||||
```
|
```
|
||||||
```js
|
```js
|
||||||
import("/js/modules/hotline.mjs").then((hotline) => {
|
import("/js/modules/hotline.mjs").then((module) => {
|
||||||
// Imported the hotline.mjs module
|
// Imported the hotline.mjs module
|
||||||
|
|
||||||
// Initializing an instance of the hotline.mjs
|
// Initializing an instance of the hotline.mjs
|
||||||
const instance = new hotline.default(
|
const instance = new module.hotline(
|
||||||
'articles',
|
'articles',
|
||||||
document.getElementById('wrap_articles')
|
document.getElementById('wrap_articles')
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue