Skip to content

Commit

Permalink
Set 'origin' parameter with default value
Browse files Browse the repository at this point in the history
  • Loading branch information
briganti committed Dec 16, 2014
1 parent 7f8fd26 commit ba72f27
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/core/player.js
Expand Up @@ -143,7 +143,13 @@ DM.provide('Player',
});
params = typeof params == "object" ? params : {};
params.api = DM.Player.API_MODE;
params.origin = location.origin;

// Support for old browser without location.origin
if (location.origin)
params.origin = location.origin;
else
params.origin = '*';

if (DM.Player.API_MODE == 'xdcom')
{
params.xdcomId = DM.Player.xdcomChannel.connectionId;
Expand Down

0 comments on commit ba72f27

Please sign in to comment.