Skip to content

Commit

Permalink
fix: 과제 링크 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
kangju2000 committed Sep 29, 2024
1 parent 23c7117 commit 06854bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/content/components/task/TaskCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export function TaskCard({ task }: Props) {

const getExactDeadline = () => format(endAtDate, 'M월 d일(E) HH:mm', { locale: ko })

const taskLink = `https://cyber.gachon.ac.kr/mod/${task.type === 'assignment' ? 'assign' : 'vod'}/view.php?id=${task.id}`
const taskLink = `${window.location.origin}/mod/${task.type === 'assignment' ? 'assign' : 'vod'}/view.php?id=${task.id}`

return (
<a href={taskLink} rel="noopener noreferrer" className="block">
Expand Down
2 changes: 1 addition & 1 deletion src/services/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import type { AnyNode } from 'domhandler'

type CheerioAPI = cheerio.CheerioAPI

const origin = document.location.origin
const origin = window.location.origin
const university = UNIVERITY_NAME_MAP[origin]

const univSpecific = {
Expand Down

0 comments on commit 06854bc

Please sign in to comment.