Skip to content

Commit

Permalink
added string option to preload
Browse files Browse the repository at this point in the history
  • Loading branch information
= committed Feb 24, 2019
1 parent 91077aa commit 123fbdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/howler.core.js
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@
self._muted = o.mute || false;
self._loop = o.loop || false;
self._pool = o.pool || 5;
self._preload = (typeof o.preload === 'boolean' || typeof o.preload === 'string') ? o.preload : false;
self._preload = (typeof o.preload === 'boolean' || typeof o.preload === 'string') ? o.preload : 'none';
self._rate = o.rate || 1;
self._sprite = o.sprite || {};
self._src = (typeof o.src !== 'string') ? o.src : [o.src];
Expand Down

0 comments on commit 123fbdd

Please sign in to comment.