Use a better id

This commit is contained in:
Jordan Eldredge 2018-03-13 18:44:26 -07:00
parent 9ea8c64253
commit f80b842ea6

View file

@ -38,7 +38,7 @@ npm install --save winamp2-js
Create a DOM element somewhere in your HTML document:
```
<div id='winamp2-js'></div>
<div id='app'></div>
```
Initialize Winamp2-js in your JavaScript:
@ -60,7 +60,7 @@ const winamp = new Winamp({
enableHotkeys: true // Enable hotkeys
});
// Render after the skin has loaded.
winamp.renderWhenReady(document.getElementById('winamp2-js'));
winamp.renderWhenReady(document.getElementById('app'));
```
_Notes:_