Only show message after 2 seconds, giving time for the browser to close it first
This commit is contained in:
parent
ee21f3957e
commit
92634a7408
1 changed files with 2 additions and 3 deletions
|
|
@ -5,10 +5,9 @@
|
||||||
<title>Account Linking Success</title>
|
<title>Account Linking Success</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h2>
|
<h2 id="msg"></h2>
|
||||||
Success! Your account is linked to Last.fm. You can close this tab now.
|
|
||||||
</h2>
|
|
||||||
<script>
|
<script>
|
||||||
|
setTimeout("document.getElementById('msg').innerHTML = 'Success! Your account is linked to Last.fm. You can close this tab now.';",2000)
|
||||||
document.addEventListener("DOMContentLoaded", () => {
|
document.addEventListener("DOMContentLoaded", () => {
|
||||||
window.close();
|
window.close();
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue