diff --git a/apps/desktop/src/app/settings/helpers.ts b/apps/desktop/src/app/settings/helpers.ts index b1723009cc..61e5679e9c 100644 --- a/apps/desktop/src/app/settings/helpers.ts +++ b/apps/desktop/src/app/settings/helpers.ts @@ -40,7 +40,7 @@ function configPathParts(path: string): string[] { } function safeSet(target: Record, key: string, value: unknown): void { - if (!isSafePart(key)) { + if (key === '__proto__' || key === 'constructor' || key === 'prototype' || !key) { throw new Error(`Unsafe config key: ${key}`) } Object.defineProperty(target, key, {