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 a5d5b66 commit 2c13f09Copy full SHA for 2c13f09
html/js/code.js
@@ -127,6 +127,7 @@ addEventListener("load", () => {
127
setEditorCode(exercise.code, exercise.type)
128
visible = "exercise"
129
let link = document.querySelector("#download")
130
+ link.setAttribute("download", "solution" + value + ".js")
131
if (/\.zip$/.test(exercise.file))
132
link.href = exercise.file
133
else
0 commit comments