Skip to content

Commit

Permalink
📝 docs: update info on initialising ad-rotator
Browse files Browse the repository at this point in the history
  • Loading branch information
niketpathak committed Apr 15, 2024
1 parent 9e905d0 commit 65773d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ let items = [
```
Then Initialize **adRotator** by passing the `DOM Element` and the `Array` of advertisements as parameters
```javascript
// initialize adRotator
const instance = rotator(
// initialize ad rotator
const instance = rotator.init( // For ESM, you can use "init(...)" directly
document.getElementById('containerElement'),
items
);
Expand Down

0 comments on commit 65773d3

Please sign in to comment.