Use a more specific name for the DOM node that will contain Winamp

Fixes #526
This commit is contained in:
Jordan Eldredge 2018-03-28 19:16:59 -07:00
parent e81ad71165
commit baa4ae93b9

View file

@ -38,7 +38,7 @@ npm install --save winamp2-js
Create a DOM element somewhere in your HTML document:
```
<div id='app'></div>
<div id='winamp-container'></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('app'));
winamp.renderWhenReady(document.getElementById('winamp-container'));
```
_Notes:_