vjudge: codeforces: fix image

This commit is contained in:
undefined committed 2021-06-21 17:23:29 +08:00
1 parent 1711babf56
commit 1102496b91
4 files changed
+11 -3

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@hydrooj/vjudge",
"version": "1.0.3",
"version": "1.0.4",
"description": "Submit problems to remote oj",
"main": "package.json",
"repository": "https://github.com/hydro-dev/Hydro.git",
+1 -1
View File
@@ -112,7 +112,7 @@ export default class CodeforcesProvider implements IBasicProvider {
superagent.get(src).pipe(file);
const fid = String.random(8);
files[`${fid}.png`] = file;
ele.setAttribute('src', `%file%://${fid}.png`);
ele.setAttribute('src', `file://${fid}.png`);
});
const title = document.querySelector('.title').innerHTML.trim().split('. ')[1];
const time = parseInt(document.querySelector('.time-limit').innerHTML.substr(53, 2), 10);