Skip to content

Commit

Permalink
Merge branch 'feature-genshin-theme' of https://github.com/sdutacm/on…
Browse files Browse the repository at this point in the history
…linejudge3-fe into feature-genshin-theme
  • Loading branch information
cooper-xs committed Feb 3, 2024
2 parents f33e09b + aff2b72 commit 07b1156
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/ContestTimeStatusWatcher.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React from 'react';
import { notification } from 'antd';
import tracker from '@/utils/tracker';
import { ContestTimeStatus } from '@/utils/getSetTimeStatus';
import { Howl } from 'howler';

export interface Props {
contestId: number;
Expand Down Expand Up @@ -29,6 +30,11 @@ class ContestTimeStatusWatcher extends React.Component<Props, State> {
message: 'Contest Ended',
duration: 0,
});
// TODO remove later
const sound = new Howl({
src: ['https://cdn.sdutacm.cn/oj/dist/public/AzurSeries/assets/ASR2_Audio_Paimon_Ended.mp3'],
})
sound.play();
break;
}
}
Expand Down

0 comments on commit 07b1156

Please sign in to comment.