Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
v4for authored Dec 5, 2024
1 parent c1d173a commit f89a407
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions play/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,23 @@ <h1 style="cursor: pointer;" onclick="window.location.href = '/'">Vafor</h1>

document.title = name + " - play now on maxwellstevenson.com";

var savedTabName = localStorage.getItem('tabName');
var savedTabImage = localStorage.getItem('tabImage');
if (savedTabName) document.title = savedTabName;
if (savedTabImage) {
var link = document.querySelector("link[rel*='icon']") || document.createElement('link');
link.type = 'image/x-icon';
link.rel = 'shortcut icon';
link.href = savedTabImage;
document.head.appendChild(link);
}

// Redirect if necessary
if (window.self === window.top && localStorage.getItem('blank2') === 'true') {
redirectToWebsite();
}
});

</script>
</body>
</html>

0 comments on commit f89a407

Please sign in to comment.