diff --git a/static/js/quiz.js b/static/js/quiz.js index f06a9b1..4678653 100644 --- a/static/js/quiz.js +++ b/static/js/quiz.js @@ -296,6 +296,7 @@ $(document).ready(() => { $(document).ready(() => { const titleToShare = title || "Minecraft Standard Translation Quiz"; + const textToShare = text || "Test your mastery of standard translations..."; const currentUrl = new URL(window.location.href); const lastSegment = currentUrl.pathname .split("/") @@ -326,7 +327,7 @@ $(document).ready(() => { navigator .share({ title: titleToShare, - text: lastSegment, + text: textToShare, url: window.location.href, }) .then(() => console.log("Shared successfully!")) diff --git a/templates/quiz_sub.html b/templates/quiz_sub.html index 0da494e..9bb7787 100644 --- a/templates/quiz_sub.html +++ b/templates/quiz_sub.html @@ -25,7 +25,8 @@