Skip to content

🎧 Your Personal Streaming Service

Only show message after 2 seconds, giving time for the browser to close it first

Deluan92634a7408c1
diff --git a/core/agents/lastfm/token_received.html b/core/agents/lastfm/token_received.html
index 775a68228..8fc03a258 100644
--- a/core/agents/lastfm/token_received.html
+++ b/core/agents/lastfm/token_received.html
@@ -5,10 +5,9 @@
<title>Account Linking Success</title>
</head>
<body>
- <h2>
- Success! Your account is linked to Last.fm. You can close this tab now.
- </h2>
+ <h2 id="msg"></h2>
<script>
+ setTimeout("document.getElementById('msg').innerHTML = 'Success! Your account is linked to Last.fm. You can close this tab now.';",2000)
document.addEventListener("DOMContentLoaded", () => {
window.close();
});