diff options
author | 2021-12-25 00:01:18 +0100 | |
---|---|---|
committer | 2021-12-25 00:01:18 +0100 | |
commit | e321534fbea9f09b139d440584f6b84ad0afb80f (patch) | |
tree | c4b4df109589475dd5f40a0d31f47a6aa9e43195 /packages/service-shared/src/schemas.ts | |
parent | feat: Shim userAgentData in all frames and workers (diff) | |
download | sophie-e321534fbea9f09b139d440584f6b84ad0afb80f.tar.gz sophie-e321534fbea9f09b139d440584f6b84ad0afb80f.tar.zst sophie-e321534fbea9f09b139d440584f6b84ad0afb80f.zip |
refactor: Simplify script injection
Inject CSS and main world scripts synchronously to avoid race conditions
with page loading.
Don't try to miming userAgentData for now, since it won't bypass
google's checks. However, simply omitting chrome from the user agent
does bypass them, at least for now.
Diffstat (limited to 'packages/service-shared/src/schemas.ts')
-rw-r--r-- | packages/service-shared/src/schemas.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/service-shared/src/schemas.ts b/packages/service-shared/src/schemas.ts index 1513e43..586750c 100644 --- a/packages/service-shared/src/schemas.ts +++ b/packages/service-shared/src/schemas.ts | |||
@@ -26,3 +26,10 @@ export const unreadCount = z.object({ | |||
26 | }); | 26 | }); |
27 | 27 | ||
28 | export type UnreadCount = z.infer<typeof unreadCount>; | 28 | export type UnreadCount = z.infer<typeof unreadCount>; |
29 | |||
30 | export const webSource = z.object({ | ||
31 | code: z.string(), | ||
32 | url: z.string().nonempty(), | ||
33 | }); | ||
34 | |||
35 | export type WebSource = z.infer<typeof webSource>; | ||