mirror of
https://github.com/captbaritone/webamp.git
synced 2026-01-23 18:25:30 +00:00
498 B
498 B
Static Methods
The Winamp class has the following static methods:
browserIsSupported()
Returns a true if the current browser supports the features that Webamp depends upon. It is recommended to check this before you attempt to construct an instance of Winamp.
import Webamp from "webamp";
if (Winamp.browserIsSupported()) {
new Winamp({
/* ... */
});
// ...
} else {
// Perhaps you could show some simpler player in this case.
}