Skip to content

Commit 2e65109

Browse files
committed
Add the document title when sending a request
1 parent 5eab1a4 commit 2e65109

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

frontend/src/app.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ export default class App {
5555
const req: ApiRequest = {
5656
site: site || window.location.hostname,
5757
path: path || window.location.pathname,
58+
title: document.title,
5859
user,
5960
signature,
6061
sid: logged?.sid

frontend/src/types/index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ declare global {
3535
interface ApiRequest {
3636
site: string
3737
path: string
38+
title: string
3839
user?: string
3940
signature?: string
4041
sid?: string

0 commit comments

Comments
 (0)