Don't sync preferredVolume to account

This commit is contained in:
WardPearce
2026-02-24 13:32:48 +13:00
parent a08da64d4e
commit 77945c36a7
2 changed files with 5 additions and 1 deletions
@@ -16,6 +16,8 @@ export async function syncSettingsToBackend() {
await Promise.all(
persistedStores.map(async (store) => {
if (store.excludeFromBackendSync) return;
getKeyValue(store.name).then((currentKeyValue) => {
if (currentKeyValue !== null || allowNullOverwrite.includes(store.name)) {
const currentKeyValueParsed = parseWithSchema(store.schema, currentKeyValue);
@@ -62,6 +62,7 @@ type PersistedStore<T> = {
schema: z.ZodType<T>;
serialize?: (value: T) => string;
excludeFromBookmarklet?: boolean; // Won't be include in bookmarklet
excludeFromBackendSync?: boolean;
};
const zBoolean = z.coerce.boolean();
@@ -250,7 +251,8 @@ export const persistedStores: PersistedStore<any>[] = [
{
name: 'preferredVolume',
store: playerPreferredVolumeStore,
schema: zFloat
schema: zFloat,
excludeFromBackendSync: true
},
{
name: 'sponsorBlockCategoriesv2',