From d15ee6270760db5fbcc9df3b02e680d7eb022f35 Mon Sep 17 00:00:00 2001 From: Ian Zhang Date: Thu, 26 Nov 2020 23:38:19 -0500 Subject: [PATCH] fixed atcoder url problem --- app/Contest.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/Contest.js b/app/Contest.js index 3dd356f..4cd769e 100644 --- a/app/Contest.js +++ b/app/Contest.js @@ -12,7 +12,11 @@ class Contest { this.startTime = startTime; this.endTime = endTime; this.platform = platform; - this.url = url; + if (platform === 'atcoder') { + this.url = 'https://atcoder.jp' + url; + } else { + this.url = url; + } } getID() {