We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9eb342d commit 56ccfd1Copy full SHA for 56ccfd1
src/code-runner-wc.js
@@ -217,7 +217,7 @@ async function getData(html_element) {
217
const res = await fetch("https://emkc.org/api/v2/piston/execute", {
218
method: 'POST',
219
body: JSON.stringify({
220
- "language": html_element.getAttribute("language"),
+ "language": html_element.getAttribute("language").toLowerCase(),
221
"version": html_element.getAttribute("version"),
222
"files": [{
223
"content": html_element.querySelector("#codetorun").innerText
0 commit comments