Enables sandbox for all windows except main

This commit is contained in:
Josh Perez
2023-04-20 17:23:19 -04:00
committed by GitHub
parent abb839c24b
commit e211837bcd
67 changed files with 1190 additions and 615 deletions

View File

@@ -3,8 +3,10 @@
import { z } from 'zod';
import { Environment } from '../environment';
import { themeSettingSchema } from './StorageUIKeys';
import { environmentSchema } from '../environment';
const environmentSchema = z.nativeEnum(Environment);
const configRequiredStringSchema = z.string().nonempty();
export type ConfigRequiredStringType = z.infer<
@@ -39,6 +41,8 @@ export const rendererConfigSchema = z.object({
environment: environmentSchema,
homePath: configRequiredStringSchema,
hostname: configRequiredStringSchema,
osRelease: configRequiredStringSchema,
osVersion: configRequiredStringSchema,
resolvedTranslationsLocale: configRequiredStringSchema,
resolvedTranslationsLocaleDirection: z.enum(['ltr', 'rtl']),
preferredSystemLocales: z.array(configRequiredStringSchema),