Skip to content

Commit

Permalink
[fix] description theme not matching preference - take 3
Browse files Browse the repository at this point in the history
Related:
- #181
  • Loading branch information
drunkwinter committed Jun 21, 2023
1 parent fd99d23 commit a892fed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/strategies/next.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ import { getYtcfgValue, isConfirmed, isEmbed } from '../../utils';
import { innertube, proxy } from '../endpoints';

export default function getUnlockStrategies(videoId, lastPlayerUnlockReason) {
const context = getYtcfgValue('INNERTUBE_CONTEXT');
const clientName = getYtcfgValue('INNERTUBE_CLIENT_NAME') || 'WEB';
const clientVersion = getYtcfgValue('INNERTUBE_CLIENT_VERSION') || '2.20220203.04.00';
const hl = getYtcfgValue('HL');
const userInterfaceTheme = context.client.userInterfaceTheme;
const userInterfaceTheme = getYtcfgValue('INNERTUBE_CONTEXT').client.userInterfaceTheme
?? (document.documentElement.hasAttribute("dark") ? 'USER_INTERFACE_THEME_DARK' : 'USER_INTERFACE_THEME_LIGHT');

return [
/**
Expand Down

0 comments on commit a892fed

Please sign in to comment.