Skip to content

Commit b53bf0c

Browse files
authored
Merge pull request #175 from hyperaudio/174-data-player-type-warning
Demote data-player-type alert to a console warning
2 parents 5f50998 + 2b2acae commit b53bf0c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/hyperaudio-lite.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*! (C) The Hyperaudio Project. MIT @license: en.wikipedia.org/wiki/MIT_License. */
2-
/*! Version 2.1.4 */
2+
/*! Version 2.1.5 */
33

44
'use strict';
55

@@ -180,7 +180,7 @@ function hyperaudioPlayer(playerType, instance) {
180180
if (playerType !== null && playerType !== undefined) {
181181
return new playerType(instance);
182182
} else {
183-
alert("data-player-type attribute must be set on player if not native, eg SoundCloud, YouTube, Vimeo, VideoJS")
183+
console.warn("HYPERAUDIO LITE WARNING: data-player-type attribute should be set on player if not native, eg SoundCloud, YouTube, Vimeo, VideoJS");
184184
}
185185
}
186186

0 commit comments

Comments
 (0)