Gate watch history v2 behind runtime flag

This commit is contained in:
thePR0M3TH3AN committed 2025-10-02 15:19:55 -04:00
1 parent b4f7ed1e54
commit 6cfaf38ce1
5 files changed
+148 -5

No files matched your search

+6 -2
View File
@@ -1,6 +1,6 @@
const DEFAULT_FLAGS = Object.freeze({
URL_FIRST_ENABLED: true, // try URL before magnet in the player
ACCEPT_LEGACY_V1: true, // accept v1 magnet-only notes
URL_FIRST_ENABLED: true, // try URL before magnet in the player
ACCEPT_LEGACY_V1: true, // accept v1 magnet-only notes
VIEW_FILTER_INCLUDE_LEGACY_VIDEO: false,
FEATURE_WATCH_HISTORY_V2: false,
WSS_TRACKERS: Object.freeze([
@@ -195,6 +195,10 @@ export function setViewFilterIncludeLegacyVideo(next) {
return VIEW_FILTER_INCLUDE_LEGACY_VIDEO;
}
export function getWatchHistoryV2Enabled() {
return FEATURE_WATCH_HISTORY_V2 === true;
}
export function setWssTrackers(next) {
runtimeFlags.WSS_TRACKERS = next;
return WSS_TRACKERS;