Skip to content

Commit

Permalink
Do not use credentials for audio assets
Browse files Browse the repository at this point in the history
  • Loading branch information
vkalpias committed Jun 25, 2015
1 parent 6d5dde1 commit 3f5a879
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/audio/audio_sound.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ pc.extend(pc, function () {
Sound = function (manager, url, success, error) {
this.buffer = null;
this.isLoaded = false;

if (!pc.AudioManager.isSupported(url, this.audio)) {
setTimeout(function () {
error(pc.string.format('Audio format for {0} not supported', url));
Expand All @@ -21,7 +21,8 @@ pc.extend(pc, function () {
success(this);
}.bind(this), error);
}.bind(this), {
error: error
error: error,
withCredentials: false
});
}
}
Expand Down

0 comments on commit 3f5a879

Please sign in to comment.