From ee490ee05a07b9664691773530a45489e629007b Mon Sep 17 00:00:00 2001 From: 4gray Date: Fri, 20 Dec 2024 22:57:57 +0100 Subject: [PATCH] feat(tauri): add user-agent, referer, and origin properties to HTTP payload --- src/app/services/tauri.service.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app/services/tauri.service.ts b/src/app/services/tauri.service.ts index b6bf2cc20..79bc0bbe2 100644 --- a/src/app/services/tauri.service.ts +++ b/src/app/services/tauri.service.ts @@ -51,6 +51,9 @@ export class TauriService extends DataService { path: (payload as any).mpvPlayerPath || '', title: (payload as any).title ?? '', thumbnail: (payload as any).thumbnail ?? '', + userAgent: (payload as any).http?.['user-agent'] ?? '', + referer: (payload as any).http?.referrer ?? '', + origin: (payload as any).http?.origin ?? '', }).catch((error) => { window.postMessage({ type: ERROR,