Skip to content

Commit

Permalink
fix: fix incomplete content issue with Java/C++
Browse files Browse the repository at this point in the history
  • Loading branch information
BRO3886 committed Apr 2, 2021
1 parent 7c38c40 commit 2850286
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions scripts/gfg.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,9 @@ function getCode() {
let hackyScriptContent = `
console.log("trying to get editor content");
var editorContent = editor.getValue();
// editorContent = editorContent.replace(/\\n/g,"<br/>")
console.log(editorContent);
var para = document.createElement("pre");
para.innerHTML+=editorContent;
para.innerText+=editorContent;
para.setAttribute("id","codeDataLeetHub")
// para.appendChild(node);
document.body.appendChild(para);
Expand Down Expand Up @@ -129,15 +128,13 @@ const gfgLoader = setInterval(() => {
}

if (code !== ""){
setTimeout(function () {
uploadGit(
btoa(code),
probName,
title+language,
SUBMIT_MSG,
'upload',
);
}, 2000);
}
});
}
Expand Down

0 comments on commit 2850286

Please sign in to comment.