Commit 618e15eb authored by Jakob Moser's avatar Jakob Moser
Browse files

Quickly patch in a workaround against our CSP

parent 9ad0803b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -106,8 +106,9 @@ export function createExerciseCard(exercise, onTitleClick) {
        <span class="loader-animation"></span>
    </div>
    <span class="loader-desc standard">Deine Lösung wird überprüft...</span>
    <span class="loader-desc unusual">Das braucht ungewöhnlich lange. <a href="javascript:location.reload()">Aufgabe neu beginnen?</a></span>
    <span class="loader-desc unusual">Das braucht ungewöhnlich lange. <a href="#">Aufgabe neu beginnen?</a></span>
    `
    loaderEl.querySelector(".loader-desc.unusual a").onclick = () => location.reload()
    cardEl.querySelector(".content").append(descriptionEl, actionsEl, loaderEl)

    // When the title bar of an exercise is clicked, skip to that exercise