Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SkyEye-FAST committed Jul 23, 2024
1 parent f3367a3 commit b819940
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion static/js/quiz.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ $(document).ready(() => {
let score = 0;
let questionScore = 10;
const questionsData = questions || {};
const titleToShare = title || "Minecraft Standard Translation Quiz";
const questionKeys = Object.keys(questionsData);

if (!questionKeys.length) {
Expand Down Expand Up @@ -296,6 +295,7 @@ $(document).ready(() => {
});

$(document).ready(() => {
const titleToShare = title || "Minecraft Standard Translation Quiz";
const currentUrl = new URL(window.location.href);
const lastSegment = currentUrl.pathname
.split("/")
Expand Down
2 changes: 1 addition & 1 deletion templates/quiz_sub.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<script>
const questions = {{ questions | tojson | safe }};
const randomCode = "{{ random_code }}";
const title = {{ _("Minecraft Standard Translation Quiz") }}
const title = "{{ _("Minecraft Standard Translation Quiz") }}"
</script>
<script src="{{ url_for('static', filename='js/dark-mode.js') }}"></script>
<script src="{{ url_for('static', filename='js/quiz.js') }}"></script>
Expand Down

0 comments on commit b819940

Please sign in to comment.