Skip to content

Commit

Permalink
Merge pull request #28 from drafear/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
drafear committed Dec 19, 2018
2 parents dd0b704 + 26c8fb3 commit 6c71c4d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
5 changes: 4 additions & 1 deletion src/content/betalib.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const betaHost = 'beta.atcoder.jp';
const betaHost = 'atcoder.jp';

export class Contest {
public readonly url: string;
Expand Down Expand Up @@ -165,6 +165,9 @@ export async function getMySubmissions(): Promise<Submission[]> {
time: ['実行時間', 'Exec Time'],
memory: ['メモリ', 'Memory'],
});
if ($th.length === 0) {
return [];
}
if (!('status' in indexes)) {
throw new Error("Betalib: getMySubmissions: Can't get status");
}
Expand Down
2 changes: 1 addition & 1 deletion src/content/clar-notify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Commonlib.runIfEnableAndLoad('notify-clarification', async () => {
title: 'Atcoder',
message: 'New Clarification',
},
href: `https://beta.atcoder.jp/contests/${contest.id}/clarifications`,
href: `https://atcoder.jp/contests/${contest.id}/clarifications`,
});
prev = cur;
}
Expand Down
2 changes: 1 addition & 1 deletion src/content/link-to-beta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const convertRules = [

function getBetaUrl(): string {
const contestId = (location.host.match(/^(.*).contest.atcoder.jp$/) as string[])[1];
const prefix = `https://beta.atcoder.jp/contests/${contestId}`;
const prefix = `https://atcoder.jp/contests/${contestId}`;
for (const rule of convertRules) {
const reg = new RegExp('^' + rule.from.replace(/\*/g, '([^\\/]+)') + '\\/?$');
if (location.pathname.match(reg)) {
Expand Down
4 changes: 2 additions & 2 deletions src/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Comfortable Atcoder",
"version": "1.5.2",
"version": "1.5.3",
"manifest_version": 2,
"description": "Comfort your atcoder life. For more detail, visit https://github.com/drafear/comfortable-atcoder",
"author": "drafear",
Expand Down Expand Up @@ -42,7 +42,7 @@
"persistent": false
},
"options_page": "options-page/options.html",
"permissions": ["notifications", "storage"],
"permissions": ["notifications", "storage", "<all_urls>"],
"icons": {
"16": "image/icon.png",
"48": "image/icon.png",
Expand Down

0 comments on commit 6c71c4d

Please sign in to comment.