Skip to content

Commit b0b556e

Browse files
authored
feat(UI): Disable add a cast button automatically on new UI (#8449)
1 parent 9112ca1 commit b0b556e

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

ui/ui.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -180,12 +180,6 @@ shaka.ui.Overlay = class {
180180
newConfig, config, this.defaultConfig_(),
181181
/* overrides= */ {}, /* path= */ '');
182182

183-
// If a cast receiver app id has been given, add a cast button to the UI
184-
if (newConfig.castReceiverAppId &&
185-
!newConfig.overflowMenuButtons.includes('cast')) {
186-
newConfig.overflowMenuButtons.push('cast');
187-
}
188-
189183
goog.asserts.assert(this.player_ != null, 'Should have a player!');
190184

191185
const diff = shaka.util.ConfigUtils.getDifferenceFromConfigObjects(

0 commit comments

Comments
 (0)