Don't sync preferredVolume to account
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user