Skip to content

Commit 5883c4a

Browse files
committed
[#83] Adjust Chromecast button detection
New layout, missing from last release
1 parent 61a3b2c commit 5883c4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scripts/page/components.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export const setDefaultIds = () => {
6060
console.dev.debug('Player elements left', left, 'right', right);
6161
if (left.length != 3)
6262
throw new Error(`Expected three buttons on left, got ${left.length}`);
63-
const hasChromecast = document.querySelector('#video-controls > div > :last-child > [aria-label="Chromecast"]');
63+
const hasChromecast = document.querySelector('#video-controls [aria-label="Chromecast"]');
6464
if (hasChromecast) {
6565
if (right.length != 6 && right.length != 7)
6666
throw new Error(`Chromecast detected, expected 6 or 7 buttons on right, got ${right.length}`);

0 commit comments

Comments
 (0)