aboutsummaryrefslogtreecommitdiffstats
path: root/packages/service-shared/src/index.ts
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2021-12-25 00:01:18 +0100
committerLibravatar Kristóf Marussy <kristof@marussy.com>2021-12-25 00:01:18 +0100
commite321534fbea9f09b139d440584f6b84ad0afb80f (patch)
treec4b4df109589475dd5f40a0d31f47a6aa9e43195 /packages/service-shared/src/index.ts
parentfeat: Shim userAgentData in all frames and workers (diff)
downloadsophie-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/index.ts')
-rw-r--r--packages/service-shared/src/index.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/service-shared/src/index.ts b/packages/service-shared/src/index.ts
index c517959..564ebe8 100644
--- a/packages/service-shared/src/index.ts
+++ b/packages/service-shared/src/index.ts
@@ -22,7 +22,9 @@ export { ServiceToMainIpcMessage } from './ipc';
22 22
23export type { 23export type {
24 UnreadCount, 24 UnreadCount,
25 WebSource,
25} from './schemas'; 26} from './schemas';
26export { 27export {
27 unreadCount, 28 unreadCount,
29 webSource,
28} from './schemas'; 30} from './schemas';