Skip to content

Commit

Permalink
Add the document title when sending a request
Browse files Browse the repository at this point in the history
  • Loading branch information
muxcmux committed Feb 17, 2023
1 parent 5eab1a4 commit 2e65109
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions frontend/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export default class App {
const req: ApiRequest = {
site: site || window.location.hostname,
path: path || window.location.pathname,
title: document.title,
user,
signature,
sid: logged?.sid
Expand Down
1 change: 1 addition & 0 deletions frontend/src/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ declare global {
interface ApiRequest {
site: string
path: string
title: string
user?: string
signature?: string
sid?: string
Expand Down

0 comments on commit 2e65109

Please sign in to comment.