Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
dongx0915 committed Mar 10, 2023
2 parents 2f28e59 + 94cd9ee commit ba82114
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "NKLCBHub(네카라쿠배 허브)",
"description": "백준 온라인 저지(BOJ)의 문제를 Github에 쉽게 업로드할 수 있습니다.",
"version": "0.0.8",
"version": "0.0.9",
"manifest_version": 3,
"permissions": [
"tabs",
Expand Down
4 changes: 4 additions & 0 deletions scripts/baekjoon/uploadFunctions.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ async function uploadOneSolveProblemOnGit(bojData, cb) {
const hook = await getHook();
if (isNull(token) || isNull(hook)) {
console.error('token or hook is null', token, hook);

const elem = document.getElementById('BaekjoonHub_progress_elem');
elem.className = 'markuploadfailed';
alert('Github 인증 토큰이 만료되었습니다. 재인증 후 다시 시도해주세요.');
return;
}
return upload(token, hook, bojData.code, bojData.readme, bojData.directory, bojData.fileName, bojData.message, cb);
Expand Down

0 comments on commit ba82114

Please sign in to comment.