MCPcopy Create free account
hub / github.com/NMWplays/Glowify / updateSectionNavScroll

Function updateSectionNavScroll

theme.js:6799–6813  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6797 // src/settings/features/progressBarHeight.ts
6798 var PROGRESS_BAR_HEIGHT_KEY = "glowify-progress-bar-height";
6799 var PROGRESS_BAR_HEIGHT_DEFAULT = 6;
6800 var PROGRESS_BAR_COMPAT_KEY = "glowify-progress-bar-compat";
6801 function isProgressBarCompat() {
6802 return readLS(PROGRESS_BAR_COMPAT_KEY, "off") === "on";
6803 }
6804 function applyCss5(px) {
6805 updateStyle(
6806 "glowify-progress-bar-height",
6807 isProgressBarCompat() ? "" : `.x-progressBar-progressBarBg, .x-progressBar-sliderArea { --progress-bar-height: ${px}px !important; height: ${px}px !important; }`
6808 );
6809 }
6810 function setProgressBarHeight(px) {
6811 localStorage.setItem(PROGRESS_BAR_HEIGHT_KEY, String(px));
6812 applyCss5(px);
6813 }
6814 function ensureProgressBarHeightApplied() {
6815 applyCss5(readNum(PROGRESS_BAR_HEIGHT_KEY, PROGRESS_BAR_HEIGHT_DEFAULT));
6816 }

Callers 3

trackOpeningPositionFunction · 0.85
showControlsAfterIntroFunction · 0.85
SettingsContentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected