ui: add check for decode

This commit is contained in:
undefined committed 2021-04-09 12:07:49 +08:00
1 parent 013ab1a049
commit a29c4ebf77
2 files changed
+3 -1

No files matched your search

@@ -216,6 +216,7 @@ const page = new NamedPage(['problem_detail', 'contest_detail_problem', 'homewor
async function loadSubjective() {
try {
const props = yaml.load(base64.decode(document.getElementsByClassName('section__body typo')[0].innerText));
if (!(props instanceof Array)) return;
$('.outer-loader-container').show();
const { default: Subjective } = await import('vj/components/subjective-question/index');
const React = await import('react');