提交 8f7725b8 编写于 作者: G Gabriele Cirulli

Add JS redirect to play2048.co

上级 9662478f
......@@ -3,7 +3,7 @@ CACHE MANIFEST
# Adds the ability to play the game offline.
# The following comment needs to be updated whenever a change is made.
# Run `rake appcache:update` to do so
# Updated: 2018-11-04T11:11:51+01:00
# Updated: 2018-11-04T12:34:31+01:00
# Main page
index.html
......
......@@ -4,6 +4,16 @@
<meta charset="utf-8">
<title>2048</title>
<script>
if (typeof window !== undefined && typeof window.location !== undefined && window.location.hostname === "gabrielecirulli.github.io") {
if (typeof window.location.replace === "function") {
window.location.replace("https://play2048.co/");
} else {
window.location = "https://play2048.co/"
}
}
</script>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-42620757-2"></script>
<script>
window.dataLayer = window.dataLayer || [];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册