Skip to content

Commit

Permalink
fix(FEC-7807): no unmute icon on ads on mobile (#165)
Browse files Browse the repository at this point in the history
Changed the return element from 'undefined' to return a player wrapper with the unmute component.
  • Loading branch information
odedhutzler authored and Dan Ziv committed Jan 29, 2018
1 parent 1314358 commit f83da1f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/ui-presets/ads.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,14 @@ import UnmuteIndication from '../components/unmute-indication';
*/
export default function adsUI(props: any): ?React$Element<any> {
if (useDefaultAdsUi(props)) {
return undefined;
return (
<div className={style.adGuiWrapper}>
<Loading player={props.player}/>
<div className={style.playerGui} id='player-gui'>
<UnmuteIndication player={props.player} hasTopBar/>
</div>
</div>
);
}
const adsUiCustomization = getAdsUiCustomization();
return (
Expand Down

0 comments on commit f83da1f

Please sign in to comment.