feat(tauri): add user-agent, referer, and origin properties to HTTP payload

This commit is contained in:
4gray committed 2024-12-20 22:57:57 +01:00
1 parent 1c5587b0e7
commit ee490ee05a
1 file changed
+3
+3
View File
@@ -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,