[perf] reduce number of rendezvous when reading invidious instance name

This commit is contained in:
Brahim Hadriche committed 2025-06-29 13:54:20 -04:00
1 parent c70d00e156
commit 75e6848df8
8 files changed
+31 -22

No files matched your search

@@ -153,7 +153,6 @@ ${JSON.stringify(profilesInfo, null, 2)}
}
const url = `https://github.com/iBicha/playlet/issues/new?title=${feedbackTitle}&body=${bodyEncoded}`;
console.log("Github URL length:", url.length);
return url;
}
@@ -31,7 +31,7 @@
let searchFiltersLabel;
playletStateStore.subscribe((value) => {
invidiousApi.instance = value?.invidious?.instance;
invidiousApi.setInstance(value?.invidious?.instance);
let userCountryCode = value?.device?.user_country_code;
if (!userCountryCode || userCountryCode === "OT") {
userCountryCode = "US";