diff options
Diffstat (limited to 'src/models/PeerTeacher.ts')
| -rw-r--r-- | src/models/PeerTeacher.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/models/PeerTeacher.ts b/src/models/PeerTeacher.ts index 9069069..7fee179 100644 --- a/src/models/PeerTeacher.ts +++ b/src/models/PeerTeacher.ts @@ -101,6 +101,8 @@ export default class PeerTeacher { return total_hours; } + // The public URL for displaying an an image on Google Drive has to be in this format + // This function simply replaces everthing before '=' with '' get drive_pic(): string { if (this.prof_pic_url == null || this.prof_pic_url == undefined) return "" return `https://drive.google.com/uc?export=view&id=${this.prof_pic_url.replace(/^[^=]*=/, '')}`; |
