Pass referrer on native (with an opt out) (#6648)

* Pass referer on native

* Add ChainLink3

* Add an opt out for sending utm

* Remove noreferrer on links

We do have <meta name="referrer" content="origin-when-cross-origin"> in HTML, should be sufficient.

* Narrow down the condition slightly

---------

Co-authored-by: Eric Bailey <git@esb.lol>
This commit is contained in:
dan
2024-11-22 23:28:45 +00:00
committed by GitHub
parent fee2f5daa2
commit ac5b2cf31f
9 changed files with 125 additions and 16 deletions
+2
View File
@@ -124,6 +124,7 @@ const schema = z.object({
subtitlesEnabled: z.boolean().optional(),
/** @deprecated */
mutedThreads: z.array(z.string()),
optOutOfUtm: z.boolean().optional(),
})
export type Schema = z.infer<typeof schema>
@@ -169,6 +170,7 @@ export const defaults: Schema = {
kawaii: false,
hasCheckedForStarterPack: false,
subtitlesEnabled: true,
optOutOfUtm: false,
}
export function tryParse(rawData: string): Schema | undefined {