Skip to content

Commit b0bf536

Browse files
committed
- update urls
- update redirect to pass url query
1 parent 1efae4a commit b0bf536

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

tools/spotify_music_quiz_cards.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@
249249
card.appendChild(qrContainer);
250250

251251
new QRCode(qrContainer, {
252-
text: `https://www.gptgames.dev/tools/spotify_test.html?track=${track.id}`,
252+
text: `https://www.gptgames.dev/tools/spotify_music_quiz_cards.html?track=${track.id}`,
253253
width: 220,
254254
height: 220,
255255
colorDark: "#000000",

tools/spotify_qr.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ <h1 class="text-2xl font-bold text-center mb-6 text-gray-800">Spotify Track QR G
5353
return;
5454
}
5555

56-
const url = `https://www.gptgames.dev/tools/spotify_test.html?track=${trackId}`;
56+
const url = `https://www.gptgames.dev/tools/spotify_music_quiz_cards.html?track=${trackId}`;
5757
const qrcode = document.getElementById('qrcode');
5858
const downloadButton = document.getElementById('downloadButton');
5959

tools/spotify_test.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4-
<meta http-equiv="refresh" content="0; url=http://gptgames.dev/tools/spotify_music_quiz_cards.html">
4+
<script>
5+
window.onload = function() {
6+
window.location.href = 'http://gptgames.dev/tools/spotify_music_quiz_cards.html' + window.location.search;
7+
}
8+
</script>
59
<title>Redirecting...</title>
610
</head>
711
<body>
8-
<p>If you are not redirected automatically, <a href="http://gptgames.dev/tools/spotify_music_quiz_cards.html">click here</a>.</p>
12+
<p>Redirecting...</p>
913
</body>
1014
</html>

0 commit comments

Comments
 (0)