Skip to content

Commit

Permalink
[fix] people page
Browse files Browse the repository at this point in the history
"cherry picked" from d4eaa99
  • Loading branch information
ponsfrilus authored Sep 24, 2021
1 parent 0f6cce0 commit bc02fbf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion EPFL_People.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ $(document).ready(async () => {
// Comfort, open admindata by default
unsafeWindow.toggleVis('admin-data')

const users = await getPeopleFromSearchAPI(document.title)
const name = document.title.match('(.*) — ');
const users = await getPeopleFromSearchAPI(name[1])
const user = users[0]
// console.log(user)
const sciper = user.sciper
Expand Down

0 comments on commit bc02fbf

Please sign in to comment.