| 5808 | showSettingsMessage(ui().settings.exported(data.format, data.display_path || data.path, data.count || 0)); |
| 5809 | } |
| 5810 | |
| 5811 | async function saveProfile() { |
| 5812 | const userId = $("profileUserId").value.trim() || currentUser(); |
| 5813 | const pdfPaths = $("pdfPaths").value.split(";").map((item) => item.trim()).filter(Boolean); |
| 5814 | const data = await api("/api/profile", { |
| 5815 | method: "POST", |
| 5816 | body: JSON.stringify({ |
| 5817 | user_id: userId, |
| 5818 | natural_language: "", |
| 5819 | scholar_url: $("scholarUrl").value, |
| 5820 | homepage_url: $("homepageUrl").value, |