Update syllabus_comp.tsx

This commit is contained in:
Leo Wen
2025-01-25 11:59:06 -08:00
parent 8fb7c3aa44
commit 82ec3f35aa
+2 -2
View File
@@ -10,11 +10,11 @@ function SyllabusListing({className, professor, fileName}: ClassListing) {
async function handleDownload() {
const a = document.createElement('a');
a.href= `http://192.168.1.202:4000/files/${fileName}`;
a.href= `https://api.sharesyllabus.me/files/${fileName}`;
a.download = fileName || 'syllabus.pdf';
a.click();
a.remove();
window.URL.revokeObjectURL(`http://192.168.1.202:4000/files/${fileName}`);
window.URL.revokeObjectURL(`https://api.sharesyllabus.me/files/${fileName}`);
}
return(