Skip to content

Commit

Permalink
remove env_forceFullAnimation=1
Browse files Browse the repository at this point in the history
This is an attempt to fix issue webosbrew#177.

Based on:
reisxd/TizenTube@185f458
  • Loading branch information
throwaway96 committed May 25, 2024
1 parent 0bfd7a1 commit 99a239b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
11 changes: 11 additions & 0 deletions src/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,17 @@ function initHideLogo() {
}

function applyUIFixes() {
try {
const tc = window.tectonicConfig;
tc.clientData.legacyApplicationQuality = 'full-animation';
tc.featureSwitches.enableAnimations = true;
tc.featureSwitches.enableListAnimations = true;
tc.featureSwitches.enableOnScrollLinearAnimation = true;
tc.featureSwitches.isLimitedMemory = false;
} catch (e) {
console.error('error setting tectonicConfig:', e);
}

try {
const bodyClasses = document.body.classList;

Expand Down
4 changes: 1 addition & 3 deletions src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ export function extractLaunchParams() {
}

function getYTURL() {
const ytURL = new URL('https://www.youtube.com/tv#/');
ytURL.searchParams.append('env_forceFullAnimation', '1');
return ytURL;
return new URL('https://www.youtube.com/tv#/');
}

/**
Expand Down

0 comments on commit 99a239b

Please sign in to comment.